Skip to content

Bump pyright, and clarify scoping of TypeVars #11802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

AlexWaygood
Copy link
Member

Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

vision (https://github.com/pytorch/vision)
+ torchvision/models/_utils.py:140: error: Argument 1 to "update" of "MutableMapping" has incompatible type "dict[_T1, _T2]"; expected "SupportsKeysAndGetItem[str, Any]"  [arg-type]
+ torchvision/datasets/sun397.py:52: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ torchvision/datasets/flickr.py:135: error: Need type annotation for "annotations"  [var-annotated]
+ torchvision/datasets/fgvc_aircraft.py:89: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ torchvision/datasets/dtd.py:74: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ torchvision/datasets/places365.py:124: error: Incompatible return value type (got "tuple[list[str], dict[_T1, _T2]]", expected "tuple[list[str], dict[str, int]]")  [return-value]
+ torchvision/datasets/places365.py:124: error: Argument 1 to "sorted" has incompatible type "dict_keys[_T1, _T2]"; expected "Iterable[str]"  [arg-type]

python-sop (https://gitlab.com/dkg/python-sop)
+ sop/__init__.py:487: error: Argument 4 to "sign" of "StatelessOpenPGP" has incompatible type "dict[_T1, _T2]"; expected "MutableMapping[str, bytes]"  [arg-type]
+ sop/__init__.py:519: error: Argument "signers" to "verify" of "StatelessOpenPGP" has incompatible type "dict[_T1, _T2]"; expected "MutableMapping[str, bytes]"  [arg-type]
+ sop/__init__.py:561: error: Argument "passwords" to "encrypt" of "StatelessOpenPGP" has incompatible type "dict[_T1, _T2]"; expected "MutableMapping[str, bytes]"  [arg-type]
+ sop/__init__.py:563: error: Argument "signers" to "encrypt" of "StatelessOpenPGP" has incompatible type "dict[_T1, _T2]"; expected "MutableMapping[str, bytes]"  [arg-type]
+ sop/__init__.py:565: error: Argument "recipients" to "encrypt" of "StatelessOpenPGP" has incompatible type "dict[_T1, _T2]"; expected "MutableMapping[str, bytes]"  [arg-type]
+ sop/__init__.py:623: error: Argument "sessionkeys" to "decrypt" of "StatelessOpenPGP" has incompatible type "dict[_T1, _T2]"; expected "MutableMapping[str, SOPSessionKey]"  [arg-type]
+ sop/__init__.py:625: error: Argument "passwords" to "decrypt" of "StatelessOpenPGP" has incompatible type "dict[_T1, _T2]"; expected "MutableMapping[str, bytes]"  [arg-type]
+ sop/__init__.py:627: error: Argument "signers" to "decrypt" of "StatelessOpenPGP" has incompatible type "dict[_T1, _T2]"; expected "MutableMapping[str, bytes]"  [arg-type]
+ sop/__init__.py:631: error: Argument "secretkeys" to "decrypt" of "StatelessOpenPGP" has incompatible type "dict[_T1, _T2]"; expected "MutableMapping[str, bytes]"  [arg-type]

paroxython (https://github.com/laowantong/paroxython)
+ paroxython/goodies.py:33: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, int]")  [assignment]
+ paroxython/preprocess_source.py:449: error: Incompatible types in assignment (expression has type "defaultdict[LabelName, _T]", variable has type "dict[LabelName, list[Span]]")  [assignment]
+ paroxython/preprocess_source.py:450: error: Incompatible types in assignment (expression has type "defaultdict[LabelName, _T]", variable has type "dict[LabelName, list[int]]")  [assignment]
+ paroxython/filter_programs.py:439: error: Incompatible types in assignment (expression has type "defaultdict[tuple[Any, ...], _T]", variable has type "dict[tuple[Any, ...], bool]")  [assignment]
+ paroxython/derived_labels_db.py:180: error: Incompatible types in assignment (expression has type "defaultdict[LabelName, _T]", variable has type "dict[LabelName, dict[Span, Any]]")  [assignment]
+ paroxython/recommend_programs.py:259: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, list[tuple[float, ProgramPath]]]")  [assignment]
+ paroxython/parse_program.py:293: error: Incompatible types in assignment (expression has type "defaultdict[LabelName, _T]", variable has type "dict[LabelName, list[Span]]")  [assignment]
+ paroxython/map_taxonomy.py:170: error: Incompatible types in assignment (expression has type "defaultdict[LabelName, _T]", variable has type "dict[LabelName, list[TaxonName]]")  [assignment]
+ paroxython/map_taxonomy.py:241: error: Incompatible types in assignment (expression has type "defaultdict[TaxonName, _T]", variable has type "dict[TaxonName, Counter[Span]]")  [assignment]
+ paroxython/make_db.py:255: error: Incompatible types in assignment (expression has type "defaultdict[LabelName, _T]", variable has type "dict[LabelName, list[ProgramPath]]")  [assignment]
+ paroxython/make_db.py:285: error: Incompatible types in assignment (expression has type "defaultdict[TaxonName, _T]", variable has type "dict[TaxonName, list[ProgramPath]]")  [assignment]

pyp (https://github.com/hauntsaninja/pyp)
+ pyp.py:252: error: Incompatible types in assignment (expression has type "defaultdict[int, _T]", variable has type "dict[int, list[str]]")  [assignment]
+ pyp.py:254: error: Incompatible types in assignment (expression has type "defaultdict[int, _T]", variable has type "dict[int, set[str]]")  [assignment]

pip (https://github.com/pypa/pip)
+ src/pip/_internal/configuration.py:247: error: Value of type "object" is not indexable  [index]
+ src/pip/_internal/configuration.py:255: error: "_T2" has no attribute "__iter__" (not iterable)  [attr-defined]
+ src/pip/_internal/configuration.py:262: error: Argument 1 to "_load_file" of "Configuration" has incompatible type "_T1"; expected "Kind"  [arg-type]
+ src/pip/_internal/configuration.py:265: error: Invalid index type "_T1" for "dict[Kind, list[tuple[str, RawConfigParser]]]"; expected type "Kind"  [index]
+ src/pip/_internal/operations/install/wheel.py:138: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, set[str]]")  [assignment]
+ src/pip/_internal/network/session.py:143: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[str, Any]")  [assignment]
+ src/pip/_internal/index/sources.py:54: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, list[str]]")  [assignment]
+ src/pip/_internal/index/collector.py:292: error: Argument 1 to "append" of "list" has incompatible type "dict[_T1, _T2]"; expected "dict[str, str | None]"  [arg-type]
+ src/pip/_internal/resolution/resolvelib/reporter.py:14: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, int]")  [assignment]
+ src/pip/_internal/operations/freeze.py:56: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, list[str]]")  [assignment]
+ src/pip/_internal/resolution/legacy/resolver.py:155: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, list[InstallRequirement]]")  [assignment]
+ src/pip/_internal/resolution/resolvelib/provider.py:102: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, float]")  [assignment]

pydantic (https://github.com/samuelcolvin/pydantic)
+ pydantic/v1/validators.py:612: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[str, Any]")  [assignment]
+ pydantic/v1/validators.py:613: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[str, Any]")  [assignment]
+ pydantic/v1/schema.py:959: error: Need type annotation for "literal_distinct_types"  [var-annotated]
+ pydantic/v1/main.py:449: error: Incompatible return value type (got "dict[_T1, _T2]", expected "dict[str, Any]")  [return-value]
+ pydantic/v1/main.py:503: error: Incompatible types in assignment (expression has type "_T2", variable has type "dict[_T1, _T2]")  [assignment]
+ pydantic/v1/main.py:503: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pydantic/v1/dataclasses.py:455: error: Argument 1 to "pop" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ pydantic/v1/dataclasses.py:455: error: Argument 2 to "pop" of "dict" has incompatible type "None"; expected "_T2"  [arg-type]
+ pydantic/v1/dataclasses.py:458: error: Argument 2 to "validate" of "ModelField" has incompatible type "dict[_T1, _T2]"; expected "dict[str, Any]"  [arg-type]
+ pydantic/_internal/_fields.py:296: error: Argument 3 to "eval_type_lenient" has incompatible type "dict[_T1, _T2]"; expected "dict[str, Any] | None"  [arg-type]
+ pydantic/_internal/_core_utils.py:419: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, int]")  [assignment]
+ pydantic/_internal/_core_utils.py:421: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, int]")  [assignment]
+ pydantic/_internal/_known_annotated_metadata.py:64: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, set[str]]")  [assignment]
+ pydantic/json_schema.py:172: error: Incompatible types in assignment (expression has type "defaultdict[DefsRef, _T]", variable has type "dict[DefsRef, list[dict[str, Any]]]")  [assignment]
+ pydantic/json_schema.py:288: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, int]")  [assignment]
+ pydantic/main.py:692: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[Any, type[Any]]")  [assignment]

cloud-init (https://github.com/canonical/cloud-init)
+ cloudinit/distros/parsers/ifconfig.py:104: error: Need type annotation for "ifs_by_mac"  [var-annotated]
+ cloudinit/log.py:124: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, list[Any]]")  [assignment]
+ cloudinit/distros/__init__.py:207: error: Need type annotation for "packages_by_manager"  [var-annotated]
+ cloudinit/config/schema.py:814: error: Incompatible types in assignment (expression has type "defaultdict[str | int, _T]", variable has type "defaultdict[str | int, list[Any]]")  [assignment]
+ cloudinit/config/schema.py:1489: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ cloudinit/config/schema.py:1489: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ cloudinit/config/schema.py:1490: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ cloudinit/config/schema.py:1490: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ cloudinit/config/schema.py:1491: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ cloudinit/config/schema.py:1491: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ cloudinit/config/schema.py:1492: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ cloudinit/config/schema.py:1492: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ cloudinit/config/schema.py:1493: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ cloudinit/config/schema.py:1501: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ cloudinit/config/schema.py:1501: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ cloudinit/config/schema.py:1506: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ cloudinit/config/schema.py:1506: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ cloudinit/config/schema.py:1507: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ cloudinit/config/schema.py:1507: error: Argument 2 to "get" of "dict" has incompatible type "str"; expected "_T2"  [arg-type]
+ cloudinit/config/schema.py:1509: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ cloudinit/config/schema.py:1510: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ cloudinit/config/schema.py:1511: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ cloudinit/config/schema.py:1511: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ cloudinit/config/schema.py:1512: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ cloudinit/config/schema.py:1513: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ cloudinit/config/schema.py:1513: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ cloudinit/config/schema.py:1514: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ cloudinit/config/schema.py:1514: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ cloudinit/config/schema.py:1516: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ cloudinit/config/schema.py:1516: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ cloudinit/config/schema.py:1517: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ cloudinit/config/schema.py:1517: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ cloudinit/config/schema.py:1520: error: Keywords must be strings  [misc]
+ cloudinit/config/cc_final_message.py:92: error: Argument 1 to "update" of "MutableMapping" has incompatible type "dict[_T1, _T2]"; expected "SupportsKeysAndGetItem[str, Any]"  [arg-type]

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/profile.py:301: error: Incompatible types in assignment (expression has type "defaultdict[AppID, _T]", variable has type "defaultdict[AppID, dict[tuple[ClassID, InstanceID], Asset[UserT]]]")  [assignment]
+ steam/state.py:220: error: Incompatible types in assignment (expression has type "defaultdict[ChatGroupID, _T]", variable has type "defaultdict[ChatGroupID, int]")  [assignment]
+ steam/state.py:1842: error: "_T" has no attribute "acquire"  [attr-defined]
+ steam/state.py:1851: error: "_T" has no attribute "release"  [attr-defined]
+ steam/ext/commands/converters.py:113: error: "_T" has no attribute "append"  [attr-defined]
+ steam/ext/commands/converters.py:241: error: "_T" has no attribute "append"  [attr-defined]
+ steam/ext/commands/commands.py:271: error: Incompatible return value type (got "dict[_T1, _T2]", expected "dict[str, Parameter]")  [return-value]
+ steam/ext/commands/commands.py:510: error: Incompatible return value type (got "_T | type", expected "ConverterBase[Any] | BasicConverter[Any] | Callable[[str], Any]")  [return-value]
+ steam/ext/commands/bot.py:184: error: Argument 1 to "MappingProxyType" has incompatible type "defaultdict[type, _T]"; expected "SupportsKeysAndGetItem[type[Any], Sequence[ConverterBase[Any] | BasicConverter[Any] | Callable[[str], Any]]]"  [arg-type]

CPython (peg_generator) (https://github.com/python/cpython)
+ Tools/peg_generator/pegen/python_generator.py:214: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ Tools/peg_generator/pegen/python_generator.py:214: error: Argument 2 to "get" of "dict" has incompatible type "str"; expected "_T2"  [arg-type]
+ Tools/peg_generator/pegen/python_generator.py:217: error: "_T2" has no attribute "rstrip"  [attr-defined]
+ Tools/peg_generator/pegen/python_generator.py:218: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ Tools/peg_generator/pegen/python_generator.py:218: error: Argument 2 to "get" of "dict" has incompatible type "str"; expected "_T2"  [arg-type]
+ Tools/peg_generator/pegen/python_generator.py:221: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ Tools/peg_generator/pegen/python_generator.py:221: error: Argument 2 to "get" of "dict" has incompatible type "str"; expected "_T2"  [arg-type]
+ Tools/peg_generator/pegen/python_generator.py:234: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ Tools/peg_generator/pegen/python_generator.py:234: error: Argument 2 to "get" of "dict" has incompatible type "str"; expected "_T2"  [arg-type]
+ Tools/peg_generator/pegen/python_generator.py:236: error: "_T2" has no attribute "rstrip"  [attr-defined]
+ Tools/peg_generator/pegen/c_generator.py:440: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ Tools/peg_generator/pegen/c_generator.py:440: error: Argument 2 to "get" of "dict" has incompatible type "str"; expected "_T2"  [arg-type]
+ Tools/peg_generator/pegen/c_generator.py:442: error: "_T2" has no attribute "rstrip"  [attr-defined]
+ Tools/peg_generator/pegen/c_generator.py:443: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ Tools/peg_generator/pegen/c_generator.py:443: error: Argument 2 to "get" of "dict" has incompatible type "str"; expected "_T2"  [arg-type]
+ Tools/peg_generator/pegen/c_generator.py:470: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ Tools/peg_generator/pegen/c_generator.py:472: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ Tools/peg_generator/pegen/c_generator.py:472: error: Argument 2 to "get" of "dict" has incompatible type "str"; expected "_T2"  [arg-type]
+ Tools/peg_generator/pegen/c_generator.py:473: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ Tools/peg_generator/pegen/c_generator.py:473: error: Argument 2 to "get" of "dict" has incompatible type "str"; expected "_T2"  [arg-type]
+ Tools/peg_generator/pegen/c_generator.py:475: error: "_T2" has no attribute "rstrip"  [attr-defined]

paasta (https://github.com/yelp/paasta)
+ paasta_tools/autoscaling/utils.py:20: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "Dict[str, Dict[str, Callable[..., Any]]]")  [assignment]
+ paasta_tools/frameworks/task_store.py:137: error: Incompatible return value type (got "Dict[_T1, _T2]", expected "Dict[str, MesosTaskParameters]")  [return-value]
+ paasta_tools/kubernetes/bin/kubernetes_remove_evicted_pods.py:137: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "Dict[str, List[EvictedPod]]")  [assignment]
+ paasta_tools/marathon_tools.py:1356: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "Dict[str, int]")  [assignment]
+ paasta_tools/kubernetes/bin/paasta_secrets_sync.py:146: error: Argument 1 to "update" of "MutableMapping" has incompatible type "Dict[_T1, _T2]"; expected "SupportsKeysAndGetItem[str, str]"  [arg-type]
+ paasta_tools/kubernetes/bin/paasta_secrets_sync.py:216: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "Dict[str, Dict[str, Optional[Set[str]]]]")  [assignment]
+ paasta_tools/kubernetes/bin/paasta_secrets_sync.py:271: error: Incompatible return value type (got "Dict[_T1, _T2]", expected "Dict[str, Dict[str, Optional[Set[str]]]]")  [return-value]
+ paasta_tools/kubernetes/bin/paasta_secrets_sync.py:313: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "Dict[str, List[Callable[..., Any]]]")  [assignment]
+ paasta_tools/envoy_tools.py:230: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, List[Tuple[EnvoyBackend, bool]]]")  [assignment]
+ paasta_tools/envoy_tools.py:290: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, List[EnvoyBackend]]")  [assignment]
+ paasta_tools/envoy_tools.py:325: error: Incompatible types in assignment (expression has type "defaultdict[Tuple[str, int], _T]", variable has type "defaultdict[Tuple[str, int], List[EnvoyBackend]]")  [assignment]
+ paasta_tools/smartstack_tools.py:391: error: Incompatible types in assignment (expression has type "defaultdict[Tuple[str, int], _T]", variable has type "defaultdict[Tuple[str, int], List[HaproxyBackend]]")  [assignment]
+ paasta_tools/smartstack_tools.py:424: error: Incompatible types in assignment (expression has type "defaultdict[Tuple[str, int], _T]", variable has type "defaultdict[Tuple[str, int], List[HaproxyBackend]]")  [assignment]
+ paasta_tools/smartstack_tools.py:458: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, List[HaproxyBackend]]")  [assignment]
+ paasta_tools/cli/utils.py:772: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "Mapping[str, InstanceTypeHandler]")  [assignment]
+ paasta_tools/cli/utils.py:806: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "Mapping[str, LongRunningInstanceTypeHandler]")  [assignment]
+ paasta_tools/instance/kubernetes.py:164: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, HPAMetricsDict]")  [assignment]
+ paasta_tools/instance/kubernetes.py:766: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, List[Future[Dict[str, Any]]]]")  [assignment]
+ paasta_tools/instance/kubernetes.py:1038: error: Incompatible types in assignment (expression has type "defaultdict[Tuple[str, str], _T]", variable has type "defaultdict[Tuple[str, str], defaultdict[bool, List[Future[Dict[str, Any]]]]]")  [assignment]
+ paasta_tools/cli/cmds/status.py:2361: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, defaultdict[str, Dict[str, Type[InstanceConfig]]]]")  [assignment]
+ paasta_tools/cli/cmds/status.py:2627: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "Mapping[str, Callable[[str, str, str, List[str], Any, int], int]]")  [assignment]
+ paasta_tools/cli/cmds/mark_for_deployment.py:1389: error: Invalid index type "str" for "Dict[_T1, _T2]"; expected type "_T1"  [index]
+ paasta_tools/cli/cmds/mark_for_deployment.py:1389: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ paasta_tools/cli/cmds/mark_for_deployment.py:1393: error: Invalid index type "str" for "Dict[_T1, _T2]"; expected type "_T1"  [index]
+ paasta_tools/cli/cmds/mark_for_deployment.py:1393: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]

mkdocs (https://github.com/mkdocs/mkdocs)
+ mkdocs/utils/__init__.py:374: error: Incompatible types in assignment (expression has type "defaultdict[int, _T]", variable has type "dict[int, int]")  [assignment]

sockeye (https://github.com/awslabs/sockeye)
+ sockeye/utils.py:571: error: Need type annotation for "visited"  [var-annotated]
+ sockeye/lexicon.py:350: error: Need type annotation for "vocab_target_lower"  [var-annotated]

Expression (https://github.com/cognitedata/Expression)
+ expression/collections/map.py:136: error: Argument 1 to "ItemsView" has incompatible type "dict[_T1, _T2]"; expected "Mapping[Key, Value]"  [arg-type]

pyjwt (https://github.com/jpadilla/pyjwt)
+ jwt/api_jwt.py:125: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[str, Any] | None")  [assignment]
+ jwt/api_jwt.py:126: error: Item "None" of "dict[str, Any] | None" has no attribute "setdefault"  [union-attr]
+ jwt/api_jwt.py:131: error: Value of type "dict[str, Any] | None" is not indexable  [index]
+ jwt/api_jwt.py:139: error: Value of type "dict[str, Any] | None" is not indexable  [index]
+ jwt/api_jwt.py:140: error: Item "None" of "dict[str, Any] | None" has no attribute "setdefault"  [union-attr]
+ jwt/api_jwt.py:141: error: Item "None" of "dict[str, Any] | None" has no attribute "setdefault"  [union-attr]
+ jwt/api_jwt.py:142: error: Item "None" of "dict[str, Any] | None" has no attribute "setdefault"  [union-attr]
+ jwt/api_jwt.py:143: error: Item "None" of "dict[str, Any] | None" has no attribute "setdefault"  [union-attr]
+ jwt/api_jwt.py:144: error: Item "None" of "dict[str, Any] | None" has no attribute "setdefault"  [union-attr]
+ jwt/api_jwt.py:146: error: Value of type "dict[str, Any] | None" is not indexable  [index]
+ jwt/api_jwt.py:161: error: Unpacked dict entry 1 has incompatible type "dict[str, Any] | None"; expected "SupportsKeysAndGetItem[str, Any]"  [dict-item]

manticore (https://github.com/trailofbits/manticore)
+ tests/auto_generators/make_dump.py:411: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[str, Any]")  [assignment]
+ manticore/utils/log.py:52: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ manticore/core/smtlib/expression.py:1152: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[int, int]")  [assignment]

aiortc (https://github.com/aiortc/aiortc)
+ src/aiortc/rtcsctptransport.py:416: error: "object" not callable  [operator]
+ src/aiortc/sdp.py:420: error: Invalid index type "str | None" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ src/aiortc/sdp.py:441: error: Argument "role" to "RTCDtlsParameters" has incompatible type "_T2"; expected "str"  [arg-type]
+ src/aiortc/sdp.py:494: error: Incompatible types in assignment (expression has type "_T2", variable has type "str")  [assignment]
+ src/aiortc/sdp.py:494: error: Invalid index type "str | None" for "dict[_T1, _T2]"; expected type "_T1"  [index]

pandas (https://github.com/pandas-dev/pandas)
+ pandas/io/formats/css.py:278: error: Incompatible types in assignment (expression has type "dict[str, str]", variable has type "dict[_T1, _T2]")  [assignment]
+ pandas/io/formats/css.py:278: error: Argument 1 to "_update_initial" of "CSSResolver" has incompatible type "dict[_T1, _T2]"; expected "dict[str, str]"  [arg-type]
+ pandas/io/formats/css.py:279: error: Incompatible types in assignment (expression has type "dict[str, str]", variable has type "dict[_T1, _T2]")  [assignment]
+ pandas/io/formats/css.py:279: error: Argument 1 to "_update_font_size" of "CSSResolver" has incompatible type "dict[_T1, _T2]"; expected "dict[str, str]"  [arg-type]
+ pandas/io/formats/css.py:280: error: Argument 1 to "_update_other_units" of "CSSResolver" has incompatible type "dict[_T1, _T2]"; expected "dict[str, str]"  [arg-type]
+ pandas/io/common.py:448: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[str, Any] | None | None")  [assignment]
+ pandas/io/common.py:550: error: Incompatible types in assignment (expression has type "_T2", variable has type "str | None")  [assignment]
+ pandas/io/common.py:550: error: Argument 1 to "pop" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ pandas/io/common.py:556: error: Incompatible return value type (got "tuple[str | None, dict[_T1, _T2]]", expected "tuple[str | None, dict[str, Any]]")  [return-value]
+ pandas/io/common.py:751: error: Incompatible types in assignment (expression has type "_T2", variable has type "Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd', 'tar'] | dict[str, Any] | None | None")  [assignment]
+ pandas/io/common.py:751: error: Argument 1 to "pop" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ pandas/io/common.py:771: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/common.py:771: error: Keywords must be strings  [misc]
+ pandas/io/common.py:771: note: Error code "misc" not covered by "type: ignore" comment
+ pandas/io/common.py:771: error: No overload variant of "GzipFile" matches argument types "str", "str", "dict[_T1, _T2]"  [call-overload]
+ pandas/io/common.py:771: note: Error code "call-overload" not covered by "type: ignore" comment
+ pandas/io/common.py:771: note: Possible overload variants:
+ pandas/io/common.py:771: note:     def __init__(self, filename: str | bytes | PathLike[str] | PathLike[bytes] | None, mode: Literal['r', 'rb'], compresslevel: int = ..., fileobj: _ReadableFileobj | None = ..., mtime: float | None = ...) -> GzipFile
+ pandas/io/common.py:771: note:     def __init__(self, *, mode: Literal['r', 'rb'], compresslevel: int = ..., fileobj: _ReadableFileobj | None = ..., mtime: float | None = ...) -> GzipFile
+ pandas/io/common.py:771: note:     def __init__(self, filename: str | bytes | PathLike[str] | PathLike[bytes] | None, mode: Literal['a', 'ab', 'w', 'wb', 'x', 'xb'], compresslevel: int = ..., fileobj: _WritableFileobj | None = ..., mtime: float | None = ...) -> GzipFile
+ pandas/io/common.py:771: note:     def __init__(self, *, mode: Literal['a', 'ab', 'w', 'wb', 'x', 'xb'], compresslevel: int = ..., fileobj: _WritableFileobj | None = ..., mtime: float | None = ...) -> GzipFile
+ pandas/io/common.py:771: note:     def __init__(self, filename: str | bytes | PathLike[str] | PathLike[bytes] | None = ..., mode: str | None = ..., compresslevel: int = ..., fileobj: _ReadableFileobj | _WritableFileobj | None = ..., mtime: float | None = ...) -> GzipFile
+ pandas/io/common.py:777: error: Keywords must be strings  [misc]
+ pandas/io/common.py:800: error: Keywords must be strings  [misc]
+ pandas/io/common.py:803: error: Argument 3 to "_BytesZipFile" has incompatible type "**dict[_T1, _T2]"; expected "str | None"  [arg-type]
+ pandas/io/common.py:820: error: Argument 1 to "setdefault" of "MutableMapping" has incompatible type "str"; expected "_T1"  [arg-type]
+ pandas/io/common.py:820: error: Argument 2 to "setdefault" of "MutableMapping" has incompatible type "str"; expected "_T2"  [arg-type]
+ pandas/io/common.py:822: error: Keywords must be strings  [misc]
+ pandas/io/common.py:822: error: Argument 2 to "_BytesTarFile" has incompatible type "**dict[_T1, _T2]"; expected "Literal['r', 'a', 'w', 'x']"  [arg-type]
+ pandas/io/common.py:822: error: Argument 2 to "_BytesTarFile" has incompatible type "**dict[_T1, _T2]"; expected "ReadBuffer[bytes] | WriteBuffer[bytes] | None"  [arg-type]
+ pandas/io/common.py:822: error: Argument 2 to "_BytesTarFile" has incompatible type "**dict[_T1, _T2]"; expected "str | None"  [arg-type]
+ pandas/io/common.py:827: error: Keywords must be strings  [misc]
+ pandas/io/common.py:829: error: Argument 2 to "_BytesTarFile" has incompatible type "**dict[_T1, _T2]"; expected "str | None"  [arg-type]
+ pandas/io/common.py:829: error: Argument 2 to "_BytesTarFile" has incompatible type "**dict[_T1, _T2]"; expected "Literal['r', 'a', 'w', 'x']"  [arg-type]
+ pandas/io/common.py:852: error: Keywords must be strings  [misc]
+ pandas/io/common.py:855: error: Argument 3 to "LZMAFile" has incompatible type "**dict[_T1, _T2]"; expected "int | None"  [arg-type]
+ pandas/io/common.py:855: error: Argument 3 to "LZMAFile" has incompatible type "**dict[_T1, _T2]"; expected "int"  [arg-type]
+ pandas/io/common.py:855: error: Argument 3 to "LZMAFile" has incompatible type "**dict[_T1, _T2]"; expected "Sequence[Mapping[str, Any]] | None"  [arg-type]
+ pandas/io/common.py:1262: error: Incompatible types in assignment (expression has type "defaultdict[Hashable, _T]", variable has type "defaultdict[Hashable, int]")  [assignment]
+ pandas/core/computation/ops.py:379: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/core/computation/ops.py:404: error: "object" not callable  [operator]
+ pandas/core/computation/ops.py:446: error: "object" not callable  [operator]
+ pandas/core/computation/ops.py:565: error: Invalid index type "Literal['+', '-', '~', 'not']" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/io/xml.py:270: error: List comprehension has incompatible type List[dict[_T1, _T2]]; expected List[dict[str, str | None]]  [misc]
+ pandas/io/xml.py:375: error: List comprehension has incompatible type List[dict[_T1, _T2]]; expected List[dict[str, str | None]]  [misc]
+ pandas/io/stata.py:1429: error: List comprehension has incompatible type List[_T2]; expected List[str | dtype[Any]]  [misc]
+ pandas/io/stata.py:1429: error: Invalid index type "int" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/io/stata.py:2012: error: Incompatible return value type (got "dict[_T1, _T2]", expected "dict[str, str]")  [return-value]
+ pandas/io/pytables.py:3553: error: Incompatible return value type (got "dict[_T1, _T2]", expected "dict[str, Any]")  [return-value]
+ pandas/io/pytables.py:3553: error: Unsupported operand types for + ("list[tuple[str, None] | tuple[str, IndexCol]]" and "list[tuple[str, DataCol]]")  [operator]
+ pandas/core/generic.py:354: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[Hashable, Any]")  [assignment]
+ pandas/core/frame.py:13017: error: Incompatible types in assignment (expression has type "defaultdict[HashableT2, _T]", variable has type "defaultdict[HashableT2, dict[HashableT, T]]")  [assignment]
+ pandas/core/apply.py:462: error: Need type annotation for "label_to_indices"  [var-annotated]
+ pandas/core/apply.py:501: error: "_T2" has no attribute "empty"  [attr-defined]
+ pandas/core/apply.py:501: error: Invalid index type "Hashable" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/core/apply.py:512: error: Key expression in dictionary comprehension has incompatible type "Hashable"; expected type "Series | DataFrame"  [misc]
+ pandas/core/apply.py:512: error: Invalid index type "Hashable" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/core/apply.py:1155: error: Incompatible return value type (got "dict[_T1, _T2]", expected "dict[int, Any]")  [return-value]
+ pandas/core/apply.py:1295: error: Incompatible return value type (got "dict[_T1, _T2]", expected "dict[int, Any]")  [return-value]
+ pandas/core/apply.py:1711: error: Need type annotation for "aggspec"  [var-annotated]
+ pandas/core/window/common.py:60: error: Unsupported target for indexed assignment ("_T")  [index]
+ pandas/core/window/common.py:60: error: Value of type "object" is not indexable  [index]
+ pandas/core/window/common.py:62: error: Unsupported target for indexed assignment ("_T")  [index]
+ pandas/core/window/common.py:74: error: Value of type "object" is not indexable  [index]
+ pandas/core/reshape/encoding.py:507: error: Need type annotation for "variables_slice"  [var-annotated]
+ pandas/core/indexes/range.py:260: error: Argument 1 to "update" of "MutableMapping" has incompatible type "dict[_T1, _T2]"; expected "SupportsKeysAndGetItem[str, Hashable]"  [arg-type]
+ pandas/core/indexes/period.py:58: error: Dict entry 0 has incompatible type "str": "str"; expected "_T1": "_T2"  [dict-item]
+ pandas/core/indexes/multi.py:122: error: Dict entry 0 has incompatible type "str": "str"; expected "_T1": "_T2"  [dict-item]
+ pandas/core/indexes/multi.py:122: error: Dict entry 1 has incompatible type "str": "str"; expected "_T1": "_T2"  [dict-item]
+ pandas/core/indexes/interval.py:105: error: Dict entry 0 has incompatible type "str": "str"; expected "_T1": "_T2"  [dict-item]
+ pandas/core/indexes/interval.py:106: error: Dict entry 1 has incompatible type "str": "str"; expected "_T1": "_T2"  [dict-item]
+ pandas/core/indexes/interval.py:107: error: Dict entry 2 has incompatible type "str": "str"; expected "_T1": "_T2"  [dict-item]
+ pandas/core/indexes/interval.py:108: error: Dict entry 3 has incompatible type "str": "str"; expected "_T1": "_T2"  [dict-item]
+ pandas/core/indexes/interval.py:165: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/core/computation/pytables.py:428: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/core/groupby/ops.py:1103: error: Need type annotation for "indices"  [var-annotated]
+ pandas/io/sas/sas_xport.py:367: error: Argument 1 to "__delitem__" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ pandas/io/sas/sas_xport.py:368: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/io/sas/sas_xport.py:368: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ pandas/io/sas/sas_xport.py:368: error: Invalid index type "_T2" for "dict[int, str]"; expected type "int"  [index]
+ pandas/io/sas/sas_xport.py:369: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/io/sas/sas_xport.py:370: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/io/sas/sas_xport.py:370: error: Unsupported operand types for > ("int" and "_T2")  [operator]
+ pandas/io/sas/sas_xport.py:370: error: Unsupported operand types for < ("int" and "_T2")  [operator]
+ pandas/io/sas/sas_xport.py:376: error: "_T2" has no attribute "strip"  [attr-defined]
+ pandas/io/sas/sas_xport.py:380: error: Unsupported operand types for + ("int" and "_T2")  [operator]
+ pandas/io/sas/sas_xport.py:380: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/io/sas/sas_xport.py:392: error: "_T2" has no attribute "decode"  [attr-defined]
+ pandas/io/sas/sas_xport.py:392: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/io/sas/sas_xport.py:396: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/io/sas/sas_xport.py:487: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/io/sas/sas_xport.py:489: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/io/sas/sas_xport.py:493: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ pandas/io/formats/style_render.py:128: error: Incompatible types in assignment (expression has type "defaultdict[tuple[int, int], _T]", variable has type "defaultdict[tuple[int, int], list[tuple[str, str | float]]]")  [assignment]
+ pandas/io/formats/style_render.py:129: error: Incompatible types in assignment (expression has type "defaultdict[tuple[int, int], _T]", variable has type "defaultdict[tuple[int, int], list[tuple[str, str | float]]]")  [assignment]
+ pandas/io/formats/style_render.py:130: error: Incompatible types in assignment (expression has type "defaultdict[tuple[int, int], _T]", variable has type "defaultdict[tuple[int, int], list[tuple[str, str | float]]]")  [assignment]
+ pandas/io/formats/style_render.py:131: error: Incompatible types in assignment (expression has type "defaultdict[tuple[int, int], _T]", variable has type "defaultdict[tuple[int, int], str]")  [assignment]
+ pandas/io/formats/style_render.py:139: error: Incompatible types in assignment (expression has type "defaultdict[tuple[int, int], _T]", variable has type "defaultdict[tuple[int, int], Callable[[Any], str]]")  [assignment]
+ pandas/io/formats/style_render.py:142: error: Incompatible types in assignment (expression has type "defaultdict[tuple[int, int], _T]", variable has type "defaultdict[tuple[int, int], Callable[[Any], str]]")  [assignment]
+ pandas/io/formats/style_render.py:145: error: Incompatible types in assignment (expression has type "defaultdict[int, _T]", variable has type "defaultdict[int, Callable[[Any], str]]")  [assignment]
+ pandas/io/formats/style_render.py:148: error: Incompatible types in assignment (expression has type "defaultdict[tuple[int, int], _T]", variable has type "defaultdict[tuple[int, int], Callable[[Any], str]]")  [assignment]
+ pandas/io/formats/style_render.py:151: error: Incompatible types in assignment (expression has type "defaultdict[int, _T]", variable has type "defaultdict[int, Callable[[Any], str]]")  [assignment]
+ pandas/io/formats/style_render.py:324: error: Incompatible types in assignment (expression has type "defaultdict[tuple[tuple[str, str | float], ...], _T]", variable has type "defaultdict[tuple[tuple[str, str | float], ...], list[str]]")  [assignment]
+ pandas/io/formats/style_render.py:335: error: Incompatible types in assignment (expression has type "defaultdict[tuple[tuple[str, str | float], ...], _T]", variable has type "defaultdict[tuple[tuple[str, str | float], ...], list[str]]")  [assignment]
+ pandas/io/formats/style_render.py:339: error: Incompatible types in assignment (expression has type "defaultdict[tuple[tuple[str, str | float], ...], _T]", variable has type "defaultdict[tuple[tuple[str, str | float], ...], list[str]]")  [assignment]
+ pandas/plotting/_matplotlib/core.py:1548: error: Incompatible types in assignment (expression has type "str", target has type "_T")  [assignment]

mypy_primer (https://github.com/hauntsaninja/mypy_primer)
+ mypy_primer/model.py:329: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, int]")  [assignment]
+ mypy_primer/main.py:257: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[str, TypeCheckResult]")  [assignment]
+ mypy_primer/main.py:283: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[str, TypeCheckResult]")  [assignment]

ignite (https://github.com/pytorch/ignite)
+ ignite/engine/engine.py:138: error: Incompatible types in assignment (expression has type "defaultdict[Any, _T]", variable has type "dict[Any, list[Any]]")  [assignment]
+ ignite/distributed/auto.py:269: error: Argument 3 to "type" has incompatible type "dict[_T1, _T2]"; expected "dict[str, Any]"  [arg-type]
+ ignite/handlers/time_profilers.py:267: error: List item 2 has incompatible type "tuple[str, dict[_T1, _T2]]"; expected "tuple[str, dict[str, Any]]"  [list-item]
+ ignite/handlers/clearml_logger.py:842: error: Incompatible types in assignment (expression has type "defaultdict[str | tuple[str, str], _T]", variable has type "defaultdict[str | tuple[str, str], list[Any]]")  [assignment]

git-revise (https://github.com/mystor/git-revise)
+ gitrevise/odb.py:211: error: Incompatible types in assignment (expression has type "defaultdict[int, _T]", variable has type "Dict[int, Dict[Oid, GitObj]]")  [assignment]

mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ mitmproxy/proxy/layers/http/_http_h2.py:52: error: Incompatible types in assignment (expression has type "defaultdict[int, _T]", variable has type "defaultdict[int, deque[SendH2Data]]")  [assignment]
+ mitmproxy/addons/stickycookie.py:38: error: Incompatible types in assignment (expression has type "defaultdict[tuple[str, int, str], _T]", variable has type "defaultdict[tuple[str, int, str], dict[str, str]]")  [assignment]
+ mitmproxy/proxy/layers/http/_http2.py:469: error: Incompatible types in assignment (expression has type "defaultdict[int, _T]", variable has type "defaultdict[int, list[Event]]")  [assignment]
+ mitmproxy/proxy/layers/http/__init__.py:853: error: Incompatible types in assignment (expression has type "defaultdict[Connection, _T]", variable has type "defaultdict[Connection, list[GetHttpConnection]]")  [assignment]
+ mitmproxy/proxy/server.py:111: error: Incompatible types in assignment (expression has type "defaultdict[tuple[str, int], _T]", variable has type "defaultdict[tuple[str, int], Semaphore]")  [assignment]
+ mitmproxy/contentviews/http3.py:84: error: Incompatible types in assignment (expression has type "defaultdict[TCPFlow, _T]", variable has type "defaultdict[TCPFlow, ConnectionState]")  [assignment]
+ mitmproxy/tools/console/keymap.py:75: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, dict[str, Binding]]")  [assignment]

porcupine (https://github.com/Akuli/porcupine)
+ porcupine/plugins/longlinemarker.py:58: error: Value of type "object" is not indexable  [index]
+ porcupine/plugins/longlinemarker.py:58: error: Invalid index type "_TokenType" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ porcupine/plugins/run/common.py:66: error: Argument 1 to "pop" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ porcupine/plugins/run/common.py:67: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ porcupine/plugins/run/common.py:67: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ porcupine/plugins/run/common.py:68: error: "_T2" has no attribute "split"  [attr-defined]
+ porcupine/plugins/run/common.py:68: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ porcupine/plugins/run/common.py:68: error: Unsupported left operand type for + ("_T2")  [operator]
+ porcupine/plugins/run/common.py:71: error: Incompatible return value type (got "dict[_T1, _T2]", expected "dict[str, str]")  [return-value]

kornia (https://github.com/kornia/kornia)
+ kornia/feature/adalam/core.py:368: error: Argument "config" to "ransac" has incompatible type "dict[_T1, _T2]"; expected "dict[str, Any]"  [arg-type]
+ kornia/utils/image_print.py:298: error: Incompatible return value type (got "_T2", expected "str")  [return-value]
+ kornia/utils/image_print.py:298: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ kornia/utils/image_print.py:338: error: Invalid index type "str" for "dict[_T2, _T1]"; expected type "_T2"  [index]
+ kornia/utils/image_print.py:339: error: Incompatible return value type (got "tuple[_T1, str]", expected "tuple[str, str]")  [return-value]
+ kornia/testing/__init__.py:258: error: Incompatible types in "yield" (actual type "dict[_T1, _T2]", expected type "dict[str, Any]")  [misc]

sympy (https://github.com/sympy/sympy)
+ sympy/core/facts.py:479: error: Need type annotation for "d"  [var-annotated]
+ sympy/printing/pycode.py:605: error: Incompatible types in assignment (expression has type "str", variable has type "_T1")  [assignment]
+ sympy/printing/pycode.py:692: error: No overload variant of "__add__" of "str" matches argument type "_T"  [operator]
+ sympy/printing/pycode.py:692: note: Possible overload variants:
+ sympy/printing/pycode.py:692: note:     def __add__(self, str, /) -> str
+ sympy/printing/pycode.py:753: error: Incompatible types in assignment (expression has type "str", variable has type "_T1")  [assignment]
+ sympy/printing/numpy.py:32: error: No overload variant of "__add__" of "str" matches argument type "_T"  [operator]
+ sympy/printing/numpy.py:32: note: Possible overload variants:
+ sympy/printing/numpy.py:32: note:     def __add__(self, str, /) -> str
+ sympy/printing/numpy.py:42: error: Incompatible types in assignment (expression has type "dict[str, Any]", base class "AbstractPythonCodePrinter" defined the type as "dict[_T1, _T2]")  [assignment]
+ sympy/printing/numpy.py:319: error: Cannot determine type of "_kf"  [has-type]
+ sympy/printing/numpy.py:319: error: Unpacked dict entry 1 has incompatible type "dict[str, str]"; expected "SupportsKeysAndGetItem[_T1, _T2]"  [dict-item]
+ sympy/printing/numpy.py:449: error: No overload variant of "__add__" of "str" matches argument type "_T"  [operator]
+ sympy/printing/numpy.py:449: note: Possible overload variants:
+ sympy/printing/numpy.py:449: note:     def __add__(self, str, /) -> str
+ sympy/printing/numpy.py:459: error: Incompatible types in assignment (expression has type "dict[str, Any]", base class "AbstractPythonCodePrinter" defined the type as "dict[_T1, _T2]")  [assignment]
+ sympy/printing/numpy.py:472: error: No overload variant of "__add__" of "str" matches argument type "_T"  [operator]
+ sympy/printing/numpy.py:472: note: Possible overload variants:
+ sympy/printing/numpy.py:472: note:     def __add__(self, str, /) -> str
+ sympy/printing/numpy.py:482: error: Incompatible types in assignment (expression has type "dict[str, Any]", base class "AbstractPythonCodePrinter" defined the type as "dict[_T1, _T2]")  [assignment]
+ sympy/printing/c.py:640: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", base class "C89CodePrinter" defined the type as "dict[Type, Any]")  [assignment]
+ sympy/printing/c.py:644: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", base class "C89CodePrinter" defined the type as "dict[Type, set[str]]")  [assignment]
+ sympy/integrals/manualintegrate.py:1986: error: Incompatible types in assignment (expression has type "defaultdict[Expr, _T]", variable has type "dict[Expr, int]")  [assignment]
+ sympy/printing/cxx.py:133: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", base class "C89CodePrinter" defined the type as "dict[Type, Any]")  [assignment]
+ sympy/tensor/array/expressions/from_array_to_matrix.py:748: error: Incompatible types in assignment (expression has type "defaultdict[frozenset[Any], _T]", variable has type "dict[frozenset[Any], list[_ArgE]]")  [assignment]
+ sympy/tensor/array/expressions/from_array_to_matrix.py:749: error: Incompatible types in assignment (expression has type "defaultdict[int | None, _T]", variable has type "dict[int | None, int]")  [assignment]
+ sympy/tensor/array/expressions/from_array_to_matrix.py:894: error: No overload variant of "range" matches argument types "_T2", "int"  [call-overload]
+ sympy/tensor/array/expressions/from_array_to_matrix.py:894: note: Possible overload variants:
+ sympy/tensor/array/expressions/from_array_to_matrix.py:894: note:     def __new__(cls, SupportsIndex, /) -> range
+ sympy/tensor/array/expressions/from_array_to_matrix.py:894: note:     def __new__(cls, SupportsIndex, SupportsIndex, SupportsIndex = ..., /) -> range
+ sympy/tensor/array/expressions/from_array_to_matrix.py:894: error: Invalid index type "_ArgE" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ sympy/tensor/array/expressions/from_array_to_matrix.py:894: error: Unsupported operand types for + ("_T2" and "int")  [operator]
+ sympy/tensor/array/expressions/from_array_to_matrix.py:905: error: Unsupported operand types for + ("_T2" and "int")  [operator]
+ sympy/tensor/array/expressions/from_array_to_matrix.py:905: error: Invalid index type "_ArgE" for "dict[_T1, _T2]"; expected type "_T1"  [index]

pylint (https://github.com/pycqa/pylint)
+ pylint/utils/ast_walker.py:32: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, list[Callable[[Any], None]]]")  [assignment]
+ pylint/utils/ast_walker.py:33: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, list[Callable[[Any], None]]]")  [assignment]
+ pylint/utils/file_state.py:42: error: Incompatible types in assignment (expression has type "defaultdict[tuple[str, int], _T]", variable has type "defaultdict[tuple[str, int], set[int]]")  [assignment]
+ pylint/pyreverse/writer.py:137: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, set[str]]")  [assignment]
+ pylint/reporters/reports_handler_mix_in.py:29: error: Incompatible types in assignment (expression has type "defaultdict[BaseChecker, _T]", variable has type "defaultdict[BaseChecker, list[tuple[str, str, Callable[[Section, LinterStats, LinterStats | None], None]]]]")  [assignment]
+ pylint/message/message_definition_store.py:35: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, list[str]]")  [assignment]
+ pylint/lint/message_state_handler.py:53: error: Incompatible types in assignment (expression has type "defaultdict[tuple[str, str], _T]", variable has type "defaultdict[tuple[str, str], list[tuple[str | None, str]]]")  [assignment]
+ pylint/lint/parallel.py:80: error: Need type annotation for "mapreduce_data"  [var-annotated]
+ pylint/lint/parallel.py:109: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, list[Any]]")  [assignment]
+ pylint/lint/parallel.py:147: error: Incompatible types in assignment (expression has type "defaultdict[int, _T]", variable has type "defaultdict[int, list[defaultdict[str, list[Any]]]]")  [assignment]
+ pylint/lint/report_functions.py:55: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, dict[str, int | float]]")  [assignment]
+ pylint/checkers/similar.py:234: error: Need type annotation for "hash2index"  [var-annotated]
+ pylint/checkers/similar.py:412: error: Incompatible types in assignment (expression has type "defaultdict[int, _T]", variable has type "dict[int, list[set[tuple[LineSet, LineNumber, LineNumber]]]]")  [assignment]
+ pylint/lint/pylinter.py:312: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, list[BaseChecker]]")  [assignment]
+ pylint/lint/pylinter.py:1313: error: Incompatible types in assignment (expression has type "defaultdict[tuple[str, str], _T]", variable has type "defaultdict[tuple[str, str], list[tuple[str | None, str]]]")  [assignment]
+ pylint/checkers/variables.py:543: error: Argument 3 to "ScopeConsumer" has incompatible type "defaultdict[str, _T]"; expected "defaultdict[str, list[Any]]"  [arg-type]
+ pylint/checkers/variables.py:3204: error: Incompatible types in assignment (expression has type "defaultdict[tuple[str, Any], _T]", variable has type "defaultdict[tuple[str, Any], list[str]]")  [assignment]
+ pylint/checkers/imports.py:448: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, set[str]]")  [assignment]
+ pylint/checkers/imports.py:459: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, set[str]]")  [assignment]
+ pylint/checkers/imports.py:465: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, set[str]]")  [assignment]
+ pylint/checkers/imports.py:497: error: Incompatible return value type (got "tuple[defaultdict[str, _T], defaultdict[str, _T]]", expected "tuple[defaultdict[str, set[str]], defaultdict[str, set[str]]]")  [return-value]
+ pylint/checkers/imports.py:505: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, set[str]]")  [assignment]
+ pylint/checkers/imports.py:506: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, set[str]]")  [assignment]
+ pylint/checkers/imports.py:1190: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, set[str]]")  [assignment]
+ pylint/checkers/design_analysis.py:426: error: Incompatible types in assignment (expression has type "defaultdict[Any, _T]", variable has type "defaultdict[Any, int]")  [assignment]
+ pylint/checkers/classes/class_checker.py:738: error: Incompatible return value type (got "defaultdict[str, _T]", expected "defaultdict[str, list[Any | Any]]")  [return-value]
+ pylint/checkers/classes/class_checker.py:747: error: Incompatible types in assignment (expression has type "defaultdict[Any, _T]", variable has type "defaultdict[Any, defaultdict[str, list[Any | Any]]]")  [assignment]
+ pylint/checkers/classes/class_checker.py:914: error: Need type annotation for "assignments"  [var-annotated]
+ pylint/checkers/classes/class_checker.py:922: error: Need type annotation for "bit_flags"  [var-annotated]
+ pylint/checkers/classes/class_checker.py:929: error: Need type annotation for "overlaps"  [var-annotated]
+ pylint/checkers/base/basic_checker.py:629: error: Incompatible types in assignment (expression has type "str", variable has type "_T")  [assignment]
+ pylint/checkers/base/basic_checker.py:631: error: Incompatible types in assignment (expression has type "str", variable has type "_T")  [assignment]
+ pylint/checkers/base/basic_checker.py:634: error: Incompatible types in assignment (expression has type "str", variable has type "_T")  [assignment]
+ pylint/checkers/base/name_checker/checker.py:338: error: Incompatible types in assignment (expression has type "defaultdict[int, _T]", variable has type "defaultdict[int, list[list[tuple[Any, str, str, Confidence]]]]")  [assignment]
+ pylint/checkers/refactoring/refactoring_checker.py:1293: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, set[str]]")  [assignment]
+ pylint/checkers/refactoring/refactoring_checker.py:1425: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, dict[str, set[Any]]]")  [assignment]

pwndbg (https://github.com/pwndbg/pwndbg)
+ pwndbg/commands/misc.py: note: In function "pwndbg_":
+ pwndbg/commands/misc.py:112: error: Need type annotation for "table_data"  [var-annotated]
+ pwndbg/commands/context.py: note: In function "context":
+ pwndbg/commands/context.py:396: error: Need type annotation for "result"  [var-annotated]

openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/catalog/marc/marc_base.py: note: In member "get_contents" of class "MarcFieldBase":
+ openlibrary/catalog/marc/marc_base.py:43: error: Need type annotation for "contents"  [var-annotated]
+ openlibrary/solr/updater/list.py: note: In function "fetch_seeds_facets":
+ openlibrary/solr/updater/list.py:35: error: Incompatible types in assignment (expression has type "defaultdict[Literal['subject', 'author', 'work', 'edition'], _T]", variable has type "defaultdict[Literal['subject', 'author', 'work', 'edition'], list[Any]]")  [assignment]
+ openlibrary/solr/updater/list.py: note: At top level:
+ openlibrary/solr/updater/work.py: note: In member "build_identifiers" of class "WorkSolrBuilder":
+ openlibrary/solr/updater/work.py:653: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, list[str]]")  [assignment]
+ openlibrary/solr/updater/work.py:657: error: Incompatible return value type (got "dict[_T1, _T2]", expected "dict[str, list[str]]")  [return-value]

pandera (https://github.com/pandera-dev/pandera)
- pandera/api/dataframe/model.py:77: error: Unused "type: ignore" comment  [unused-ignore]
+ pandera/api/dataframe/model.py:187: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[TypeVar, type[Any]]")  [assignment]
- pandera/backends/polars/base.py:212: error: Unused "type: ignore" comment  [unused-ignore]
+ pandera/backends/polars/base.py:124: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, int]")  [assignment]
+ pandera/backends/polars/base.py:182: error: Need type annotation for "scalar_failure_cases"  [var-annotated]

sphinx (https://github.com/sphinx-doc/sphinx)
+ sphinx/util/logging.py:29:38: error: Incompatible types in assignment (expression has type "defaultdict[_T1, _T2]", variable has type "defaultdict[str, int]")  [assignment]
+ sphinx/util/logging.py:39:40: error: Incompatible types in assignment (expression has type "defaultdict[_T1, _T2]", variable has type "defaultdict[int, int]")  [assignment]
+ sphinx/util/logging.py:45:36: error: Incompatible types in assignment (expression has type "defaultdict[_T1, _T2]", variable has type "defaultdict[int, str]")  [assignment]
+ sphinx/domains/__init__.py: note: In member "__init__" of class "Domain":
+ sphinx/domains/__init__.py:213:29: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[str, ObjType]")  [assignment]
+ sphinx/domains/__init__.py:214:27: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[str, type[Directive]]")  [assignment]
+ sphinx/domains/__init__.py:215:22: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[str, Union[Callable[[str, str, str, int, Inliner, dict[str, Any], Sequence[str]], tuple[list[Node], list[system_message]]], XRefRole]]")  [assignment]
+ sphinx/config.py: note: In member "__init__" of class "Config":
+ sphinx/config.py:279:16: error: Unsupported right operand type for in ("_T1")  [operator]
+ sphinx/config.py:280:34: error: "_T1" has no attribute "split"  [attr-defined]
+ sphinx/config.py:286:46: error: Argument 1 to "pop" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ sphinx/config.py: note: In member "overrides" of class "Config":
+ sphinx/config.py:299:16: error: Incompatible return value type (got "dict[_T1, _T2]", expected "dict[str, Any]")  [return-value]
+ sphinx/config.py: note: In member "__getattr__" of class "Config":
+ sphinx/config.py:392:41: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ sphinx/util/rst.py:32:29: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, str]")  [assignment]
+ sphinx/theming.py: note: In function "_convert_theme_conf":
+ sphinx/theming.py:428:17: error: Argument "options" to "_ConfigFile" has incompatible type "dict[_T1, _T2]"; expected "dict[str, str]"  [arg-type]
+ sphinx/events.py: note: In member "__init__" of class "EventManager":
+ sphinx/events.py:58:58: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, list[EventListener]]")  [assignment]
+ sphinx/environment/__init__.py: note: In member "__init__" of class "BuildEnvironment":
+ sphinx/environment/__init__.py:179:50: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, set[str]]")  [assignment]
+ sphinx/environment/__init__.py:182:46: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, set[str]]")  [assignment]
+ sphinx/environment/__init__.py:194:52: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "dict[str, dict[str, Any]]")  [assignment]
+ sphinx/ext/autodoc/__init__.py: note: In class "DataDocumenter":
+ sphinx/ext/autodoc/__init__.py:2045:41: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[str, Callable[[str], Any]]")  [assignment]
+ sphinx/ext/autodoc/__init__.py: note: In member "update_annotations" of class "DataDocumenter":
+ sphinx/ext/autodoc/__init__.py:2065:33: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ sphinx/ext/autodoc/__init__.py:2065:45: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ sphinx/ext/autodoc/__init__.py: note: In class "AttributeDocumenter":
+ sphinx/ext/autodoc/__init__.py:2592:41: error: Incompatible types in assignment (expression has type "dict[_T1, _T2]", variable has type "dict[str, Callable[[str], Any]]")  [assignment]
+ sphinx/ext/autodoc/__init__.py: note: In member "update_annotations" of class "AttributeDocumenter":
+ sphinx/ext/autodoc/__init__.py:2632:41: error: Invalid index type "str" for "dict[_T1, _T2]"; expected type "_T1"  [index]
+ sphinx/ext/autodoc/__init__.py:2632:53: error: Incompatible types in assignment (expression has type "str", target has type "_T2")  [assignment]
+ sphinx/builders/gettext.py: note: In member "init" of class "I18nBuilder":
+ sphinx/builders/gettext.py:144:52: error: Incompatible types in assignment (expression has type "defaultdict[str, _T]", variable has type "defaultdict[str, Catalog]")  [assignment]
+ sphinx/writers/latex.py: note: In member "__init__" of class "Table":
+ sphinx/writers/latex.py:133:50: error: Incompatible types in assignment (expression has type "defaultdict[tuple[int, int], _T]", variable has type "dict[tuple[int, int], int]")  [assignment]
+ sphinx/writers/latex.py: note: In member "visit_enumerated_list" of class "LaTeXTranslator":
+ sphinx/writers/latex.py:1246:42: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "_T1"  [arg-type]
+ sphinx/domains/cpp/__init__.py: note: In member "handle_signature" of class "CPPObject":
+ sphinx/domains/cpp/__init__

... (truncated 820 lines) ...

@AlexWaygood
Copy link
Member Author

suboptimal

@AlexWaygood AlexWaygood deleted the bump-pyright branch April 21, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant