typeshed icon indicating copy to clipboard operation
typeshed copied to clipboard

Add `__replace__` for `AST` and `AST` subclasses

Open max-muoto opened this issue 1 year ago • 3 comments

3.14 adds __replace__ methods for AST and all of its subclasses.

max-muoto avatar Aug 06 '24 03:08 max-muoto

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

bidict (https://github.com/jab/bidict)
+ note: In module imported here,
+ bidict/__init__.py:1: note: ... from here:
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655:23: error: expected ':'  [syntax]

mypy_primer (https://github.com/hauntsaninja/mypy_primer)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]

pytest-robotframework (https://github.com/detachhead/pytest-robotframework)
- pytest_robotframework/_internal/utils.py:18: error: The last parameter to Concatenate needs to be a ParamSpec  [valid-type]
- pytest_robotframework/_internal/utils.py:18: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/_internal/utils.py:18: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/_internal/utils.py:36: error: The last parameter to Concatenate needs to be a ParamSpec  [valid-type]
- pytest_robotframework/_internal/utils.py:36: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/_internal/utils.py:36: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/_internal/utils.py:40: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/_internal/utils.py:40: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/_internal/utils.py:52: error: Free type variable expected in Protocol[...]  [misc]
- pytest_robotframework/_internal/robot/utils.py:140: error: Free type variable expected in Generic[...]  [misc]
- pytest_robotframework/_internal/robot/utils.py:181: error: Variable "pytest_robotframework._internal.robot.utils.ModelTestCase" is not valid as a type  [valid-type]
- pytest_robotframework/_internal/robot/utils.py:181: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- pytest_robotframework/_internal/robot/utils.py:184: error: ModelTestCase? has no attribute "name"  [attr-defined]
- pytest_robotframework/_internal/robot/utils.py:184: error: ModelTestCase? has no attribute "full_name"  [attr-defined]
- pytest_robotframework/_internal/robot/utils.py:226: error: Incompatible types in assignment (expression has type "object", variable has type "list[object] | None")  [assignment]
- pytest_robotframework/_internal/robot/utils.py:228: error: Incompatible types in assignment (expression has type "object", variable has type "list[object] | None")  [assignment]
- pytest_robotframework/_internal/pytest/robot_file_support.py:56: error: "object" has no attribute "error"  [attr-defined]
- pytest_robotframework/_internal/pytest/robot_file_support.py:62: error: Method "collect" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/pytest/robot_file_support.py:163: error: Method "reportinfo" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/pytest/robot_file_support.py:167: error: Method "repr_failure" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/pytest/robot_file_support.py:188: error: Method "toterminal" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/__init__.py:108: error: Method "_get_failure" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/__init__.py:129: error: Incompatible types in assignment (expression has type "TracebackType | None", variable has type "TracebackType")  [assignment]
- pytest_robotframework/__init__.py:218: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/__init__.py:218: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/__init__.py:219: error: "SuppressableContextManager" expects no type arguments, but 1 given  [type-arg]
- pytest_robotframework/__init__.py:238: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/__init__.py:238: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/__init__.py:264: error: "SuppressableContextManager" expects no type arguments, but 1 given  [type-arg]
- pytest_robotframework/__init__.py:269: error: Incompatible types in assignment (expression has type "object", variable has type "SuppressableContextManager")  [assignment]
- pytest_robotframework/__init__.py:327: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/__init__.py:327: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/__init__.py:330: error: Overloaded function signature 2 will never be matched: signature 1's parameter type(s) are the same or broader  [misc]
- pytest_robotframework/__init__.py:330: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/__init__.py:330: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/__init__.py:332: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/__init__.py:332: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/__init__.py:344: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/__init__.py:344: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/__init__.py:357: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/__init__.py:357: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/__init__.py:394: error: Incompatible types in assignment (expression has type "bool | None", variable has type "bool")  [assignment]
- pytest_robotframework/__init__.py:419: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/__init__.py:419: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/__init__.py:456: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/__init__.py:456: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/__init__.py:457: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/__init__.py:457: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/__init__.py:464: error: Overloaded function signature 5 will never be matched: signature 4's parameter type(s) are the same or broader  [misc]
- pytest_robotframework/__init__.py:464: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/__init__.py:464: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/__init__.py:468: error: Overloaded function signature 6 will never be matched: signature 4's parameter type(s) are the same or broader  [misc]
- pytest_robotframework/__init__.py:468: error: Overloaded function signature 6 will never be matched: signature 5's parameter type(s) are the same or broader  [misc]
- pytest_robotframework/__init__.py:468: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/__init__.py:468: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/__init__.py:472: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/__init__.py:472: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/__init__.py:478: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/__init__.py:478: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/__init__.py:506: error: Argument "wrap_context_manager" to "keyword" has incompatible type "bool | None"; expected "None"  [arg-type]
- pytest_robotframework/__init__.py:570: error: No overload variant of "keyword" matches argument types "str | None", "tuple[str, ...] | None", "str | None", "bool"  [call-overload]
- pytest_robotframework/__init__.py:570: note: Possible overload variants:
- pytest_robotframework/__init__.py:570: note:     def keyword(*, name: str | None = ..., tags: tuple[str, ...] | None = ..., module: str | None = ..., wrap_context_manager: Literal[True]) -> _WrappedContextManagerKeywordDecorator
- pytest_robotframework/__init__.py:570: note:     def keyword(*, name: str | None = ..., tags: tuple[str, ...] | None = ..., module: str | None = ..., wrap_context_manager: Literal[False]) -> _NonWrappedContextManagerKeywordDecorator
- pytest_robotframework/__init__.py:570: note:     def keyword(*, name: str | None = ..., tags: tuple[str, ...] | None = ..., module: str | None = ..., wrap_context_manager: None = ...) -> _FunctionKeywordDecorator
- pytest_robotframework/__init__.py:570: note:     def keyword(fn: Any) -> Any
- pytest_robotframework/__init__.py:570: note:     def keyword(fn: Any) -> Never
- pytest_robotframework/__init__.py:598: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/__init__.py:598: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/__init__.py:617: error: Redundant cast to "list[tuple[str, Any]]"  [redundant-cast]
- pytest_robotframework/_internal/robot/library.py:73: error: "Cloaked" expects no type arguments, but 1 given  [type-arg]
- pytest_robotframework/_internal/robot/library.py:87: error: "Cloaked" expects no type arguments, but 1 given  [type-arg]
- pytest_robotframework/_internal/robot/library.py:105: error: "Cloaked" expects no type arguments, but 1 given  [type-arg]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:69: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:69: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:100: error: Method "parse" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:186: error: Method "parse_init" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:207: error: Method "start_suite" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:216: error: Method "end_suite" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:238: error: Method "visit_test" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:249: error: Method "end_suite" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:288: error: Method "start_suite" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:384: error: Method "start_test" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:474: error: Method "end_test" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:509: error: Method "start_test" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:518: error: Method "end_test" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:527: error: Method "log_message" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:553: error: Method "start_test" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:557: error: Method "log_message" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:564: error: Method "end_test" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:570: error: The first argument to Callable must be a list of types, parameter specification, or "..."  [valid-type]
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:570: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
- pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:617: error: Method "start_library_keyword" is marked as an override, but no base method was found with this name  [misc]
- pytest_robotframework/_internal/pytest/plugin.py:451: error: "_RedirectStream[IO[str]]" has no attribute "_stream"  [attr-defined]
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]

git-revise (https://github.com/mystor/git-revise)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]
- gitrevise/odb.py:60: error: Unused "type: ignore" comment  [unused-ignore]
- gitrevise/odb.py:498: error: Redundant cast to "GitObjT"  [redundant-cast]

python-sop (https://gitlab.com/dkg/python-sop)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]
- sop/__init__.py:224: error: Missing type parameters for generic type "_SubParsersAction"  [type-arg]
- sop/__init__.py:387: error: Missing type parameters for generic type "_SubParsersAction"  [type-arg]

vision (https://github.com/pytorch/vision)
- torchvision/models/quantization/utils.py:29: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/quantization/utils.py:34: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/quantization/utils.py:39: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/tv_tensors/_tv_tensor.py:106: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/tv_tensors/_tv_tensor.py:111: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/tv_tensors/_tv_tensor.py:116: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/tv_tensors/_tv_tensor.py:121: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/tv_tensors/_tv_tensor.py:132: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/prototype/utils/_internal.py:102: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/tv_tensors/_video.py:36: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/tv_tensors/_bounding_boxes.py:52: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/tv_tensors/_bounding_boxes.py:102: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/prototype/tv_tensors/_label.py:51: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/_api.py:178: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/_utils.py:174: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/datasets/utils.py:133: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/utils.py:119: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/utils.py:228: error: Incompatible types in assignment (expression has type "FreeTypeFont", variable has type "ImageFont")  [assignment]
- torchvision/tv_tensors/_image.py:52: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/detection/generalized_rcnn.py:106: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/datasets/voc.py:10: error: Incompatible import of "ET_parse" (imported name has type "Callable[[int | str | bytes | PathLike[str] | PathLike[bytes] | SupportsRead[bytes] | SupportsRead[str], XMLParser | None], ElementTree]", local name has type "Callable[[Any, DefusedXMLParser | None, bool, bool, bool], ElementTree]")  [assignment]
- torchvision/datasets/folder.py:78: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/datasets/_stereo_matching.py:61: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/datasets/_stereo_matching.py:565: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/datasets/_optical_flow.py:46: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/datasets/video_utils.py:146: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/datasets/video_utils.py:386: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/functional/_geometry.py:297: error: Argument "resample" to "resize" of "Image" has incompatible type "int"; expected "Resampling | Literal[0, 1, 2, 3, 4, 5] | None"  [arg-type]
- torchvision/models/swin_transformer.py:53: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/swin_transformer.py:288: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/swin_transformer.py:370: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/resnet.py:221: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/resnet.py:223: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/maxvit.py:87: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/maxvit.py:90: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/maxvit.py:96: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/maxvit.py:98: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/maxvit.py:178: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/maxvit.py:179: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/inception.py:89: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/inception.py:162: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/inception.py:376: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/inception.py:378: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/googlenet.py:87: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/googlenet.py:88: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/googlenet.py:170: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/googlenet.py:338: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/googlenet.py:339: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/video/resnet.py:248: error: Unused "type: ignore[arg-type, union-attr]" comment  [unused-ignore]
- torchvision/models/video/resnet.py:447: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/video/swin_transformer.py:53: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/video/swin_transformer.py:292: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/quantization/googlenet.py:203: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/quantization/googlenet.py:204: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/detection/backbone_utils.py:243: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/_transform.py:113: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/_augment.py:114: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/_augment.py:115: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/_augment.py:213: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/_augment.py:247: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/_augment.py:296: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/video/mvit.py:234: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/video/mvit.py:235: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/video/mvit.py:236: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/video/mvit.py:251: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/video/mvit.py:252: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/video/mvit.py:253: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/video/mvit.py:263: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/video/mvit.py:264: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/video/mvit.py:265: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/video/mvit.py:344: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/detection/rpn.py:38: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/detection/rpn.py:40: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/detection/_utils.py:382: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/models/detection/_utils.py:486: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/_meta.py:23: error: Unused "type: ignore[return-value]" comment  [unused-ignore]
- torchvision/transforms/v2/_meta.py:36: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/_geometry.py:280: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/_geometry.py:281: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/_geometry.py:488: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/_auto_augment.py:327: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/_auto_augment.py:416: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/_auto_augment.py:485: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/_auto_augment.py:577: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/transforms/v2/_auto_augment.py:618: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/prototype/models/depth/stereo/raft_stereo.py:456: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/prototype/models/depth/stereo/crestereo.py:335: error: Unused "type: ignore" comment  [unused-ignore]
- torchvision/prototype/models/depth/stereo/crestereo.py:481: error: Unused "type: ignore" comment  [unused-ignore]
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]

porcupine (https://github.com/Akuli/porcupine)
- porcupine/settings.py:83: error: Unused "type: ignore" comment  [unused-ignore]
- porcupine/plugins/git_status.py:139: error: Argument 1 to "run_git_status" has incompatible type "Path | None"; expected "Path"  [arg-type]
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]

attrs (https://github.com/python-attrs/attrs)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]

paroxython (https://github.com/laowantong/paroxython)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]
- paroxython/goodies.py:10: error: Unused "type: ignore" comment  [unused-ignore]
- paroxython/flatten_ast.py:319: error: Unused "type: ignore" comment  [unused-ignore]
- paroxython/preprocess_source.py:32: error: Unused "type: ignore" comment  [unused-ignore]
- paroxython/normalize_predicate.py:5: error: Unused "type: ignore" comment  [unused-ignore]
- paroxython/list_programs.py:6: error: Unused "type: ignore" comment  [unused-ignore]
- paroxython/list_programs.py:51: error: Incompatible default for argument "relative_path" (default has type "None", argument has type "Path")  [assignment]
- paroxython/list_programs.py:51: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
- paroxython/list_programs.py:51: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
- paroxython/filter_programs.py:20: error: Unused "type: ignore" comment  [unused-ignore]
- paroxython/derived_labels_db.py:84: error: Unused "type: ignore" comment  [unused-ignore]
- paroxython/recommend_programs.py:36: error: Unused "type: ignore" comment  [unused-ignore]
- paroxython/recommend_programs.py:160: error: Incompatible types in assignment (expression has type "str", variable has type "Operation")  [assignment]
- paroxython/parse_program.py:9: error: Unused "type: ignore" comment  [unused-ignore]
- paroxython/parse_program.py:240: error: Incompatible types in assignment (expression has type "Callable[[str, int | None, int | None, bool, bool | None, bool, float | None], Scanner[str]]", target has type "Pattern[Any]")  [assignment]
- paroxython/parse_program.py:288: error: Unused "type: ignore" comment  [unused-ignore]
- paroxython/parse_program.py:297: error: "Pattern[Any]" not callable  [operator]
- paroxython/label_programs.py:6: error: Unused "type: ignore" comment  [unused-ignore]
- paroxython/cli_recommend.py:83: error: Unused "type: ignore" comment  [unused-ignore]
- paroxython/map_taxonomy.py:113: error: Unused "type: ignore" comment  [unused-ignore]
- paroxython/map_taxonomy.py:178: error: Argument 1 to "append" of "list" has incompatible type "tuple[regex.regex.Pattern[str], TaxonPattern]"; expected "tuple[re.Pattern[Any], TaxonPattern]"  [arg-type]
- paroxython/make_db.py:12: error: Unused "type: ignore" comment  [unused-ignore]
- paroxython/cli.py:24: error: Unused "type: ignore" comment  [unused-ignore]
- paroxython/cli.py:25: error: Unused "type: ignore" comment  [unused-ignore]

pyjwt (https://github.com/jpadilla/pyjwt)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]

yarl (https://github.com/aio-libs/yarl)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655:23: error: expected ':'  [syntax]
- yarl/_quoting_py.py:43:16: error: Redundant cast to "str"  [redundant-cast]
- yarl/_quoting.py:14: error: Unused "type: ignore" comment  [unused-ignore]

mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]
- mitmproxy/io/tnetstring.py:217: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/io/tnetstring.py:224: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/coretypes/serializable.py:85: error: Argument 2 to "_to_state" has incompatible type "type[Any] | str | Any"; expected "type[Any]"  [arg-type]
- mitmproxy/coretypes/serializable.py:92: error: Argument 2 to "_to_val" has incompatible type "type[Any] | str | Any"; expected "type[Any]"  [arg-type]
- mitmproxy/coretypes/serializable.py:94: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/coretypes/serializable.py:108: error: Argument 2 to "_to_val" has incompatible type "type[Any] | str | Any"; expected "type[Any]"  [arg-type]
- mitmproxy/certs.py:85: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/certs.py:112: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/certs.py:120: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/certs.py:212: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/certs.py:250: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/certs.py:340: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/certs.py:489: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/certs.py:508: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/certs.py:633: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/utils/vt_codes.py:10: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/net/encoding.py:122: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/coretypes/multidict.py:153: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/coretypes/multidict.py:167: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/proxy/mode_specs.py:45: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/net/tls.py:30: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/net/tls.py:31: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/utils/asyncio_utils.py:84: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/http.py:49: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/utils/debug.py:60: error: Incompatible types in assignment (expression has type "pconn", variable has type "popenfile")  [assignment]
- mitmproxy/utils/debug.py:67: error: Incompatible types in assignment (expression has type "Thread", variable has type "popenfile")  [assignment]
- mitmproxy/utils/debug.py:71: error: "popenfile" has no attribute "name"  [attr-defined]
- mitmproxy/utils/debug.py:72: error: "popenfile" has no attribute "_thread_started"  [attr-defined]
- mitmproxy/utils/debug.py:74: error: "popenfile" has no attribute "_threadinfo"  [attr-defined]
- mitmproxy/types.py:128: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/command.py:37: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/addons/mapremote.py:68: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/addons/core.py:139: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/proxy/layers/quic.py:311: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/proxy/layers/quic.py:371: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/proxy/layers/quic.py:373: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/proxy/layers/quic.py:400: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/proxy/layers/http/_http_h3.py:125: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/addons/tlsconfig.py:320: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/tools/console/master.py:231: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/tools/console/keymap.py:197: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/tools/console/consoleaddons.py:532: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/tools/console/grideditor/base.py:168: error: Unused "type: ignore" comment  [unused-ignore]
- mitmproxy/addons/dumper.py:326: error: Unused "type: ignore" comment  [unused-ignore]
- web/gen/tflow_js.py:31: error: Item "None" of "Response | None" has no attribute "trailers"  [union-attr]
- web/gen/state_js.py:23: error: Need type annotation for "si1"  [var-annotated]
- web/gen/state_js.py:30: error: "ServerInstance[Any]" has no attribute "_servers"  [attr-defined]
- web/gen/state_js.py:31: error: Need type annotation for "si2"  [var-annotated]
- web/gen/state_js.py:33: error: Need type annotation for "si3"  [var-annotated]

rclip (https://github.com/yurijmikhalevich/rclip)
- rclip/utils/preview.py:27: error: Unused "type: ignore" comment  [unused-ignore]
- rclip/utils/helpers.py:45: error: Incompatible types in assignment (expression has type "Path", variable has type "str | None")  [assignment]
- rclip/utils/helpers.py:47: error: Incompatible types in assignment (expression has type "Path", variable has type "str | None")  [assignment]
- rclip/utils/helpers.py:48: error: Argument 1 to "makedirs" has incompatible type "str | None"; expected "str | bytes | PathLike[str] | PathLike[bytes]"  [arg-type]
- rclip/utils/helpers.py:49: error: Incompatible return value type (got "str | None", expected "Path")  [return-value]
- rclip/model.py:73: error: Unused "type: ignore" comment  [unused-ignore]
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]
- rclip/main.py:37: error: TypedDict key must be a string literal; expected one of ("modified_at", "size")  [literal-required]
- rclip/main.py:37: error: TypedDict key must be a string literal; expected one of ("deleted", "filepath", "modified_at", "size", "vector", ...)  [literal-required]

setuptools (https://github.com/pypa/setuptools)
- setuptools/_path.py:43: error: Value of type variable "AnyStr" of "abspath" cannot be "Union[str, PathLike[Any], Any]"  [type-var]
- setuptools/command/__init__.py:6: error: No overload variant of "__setitem__" of "list" matches argument types "str", "Tuple[str, str]"  [call-overload]
- setuptools/command/__init__.py:6: note: Possible overload variants:
- setuptools/command/__init__.py:6: note:     def __setitem__(self, SupportsIndex, str, /) -> None
- setuptools/command/__init__.py:6: note:     def __setitem__(self, slice, Iterable[str], /) -> None
- pkg_resources/__init__.py:2641: error: Value of type variable "AnyStr" of "abspath" cannot be "Sequence[object]"  [type-var]
- setuptools/config/expand.py:128: error: Value of type variable "AnyStr" of "abspath" cannot be "Union[str, PathLike[Any], Any]"  [type-var]
- setuptools/config/expand.py:133: error: Argument 2 to "_assert_local" has incompatible type "Union[str, Any, PathLike[Any]]"; expected "str"  [arg-type]
- setuptools/config/expand.py:151: error: Value of type variable "AnyStr" of "abspath" cannot be "Union[str, PathLike[Any], Any]"  [type-var]
- setuptools/config/setupcfg.py:101: error: Value of type variable "AnyStr" of "abspath" cannot be "Union[str, PathLike[Any], Any]"  [type-var]
- setuptools/config/pyprojecttoml.py:101: error: Value of type variable "AnyStr" of "abspath" cannot be "Union[str, PathLike[Any], Any]"  [type-var]
- setuptools/build_meta.py:381: error: Value of type variable "AnyStr" of "abspath" cannot be "Union[str, PathLike[Any], Any]"  [type-var]
- setuptools/build_meta.py:387: error: Argument 1 to "TemporaryDirectory" has incompatible type "**Dict[str, Union[str, Any, PathLike[Any]]]"; expected "Optional[str]"  [arg-type]
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]

urllib3 (https://github.com/urllib3/urllib3)
- dummyserver/app.py:37: error: Untyped decorator makes function "index" untyped  [misc]
- dummyserver/app.py:38: error: Untyped decorator makes function "index" untyped  [misc]
- dummyserver/app.py:39: error: Untyped decorator makes function "index" untyped  [misc]
- dummyserver/app.py:44: error: Untyped decorator makes function "alpn_protocol" untyped  [misc]
- dummyserver/app.py:51: error: Untyped decorator makes function "certificate" untyped  [misc]
- dummyserver/app.py:60: error: Untyped decorator makes function "specific_method" untyped  [misc]
- dummyserver/app.py:61: error: Untyped decorator makes function "specific_method" untyped  [misc]
- dummyserver/app.py:74: error: Untyped decorator makes function "upload" untyped  [misc]
- dummyserver/app.py:105: error: Untyped decorator makes function "chunked" untyped  [misc]
- dummyserver/app.py:114: error: Untyped decorator makes function "chunked_gzip" untyped  [misc]
- dummyserver/app.py:126: error: Untyped decorator makes function "keepalive" untyped  [misc]
- dummyserver/app.py:136: error: Untyped decorator makes function "echo" untyped  [misc]
- dummyserver/app.py:145: error: Untyped decorator makes function "echo_json" untyped  [misc]
- dummyserver/app.py:146: error: Untyped decorator makes function "echo_json" untyped  [misc]
- dummyserver/app.py:155: error: Untyped decorator makes function "echo_uri" untyped  [misc]
- dummyserver/app.py:156: error: Untyped decorator makes function "echo_uri" untyped  [misc]
- dummyserver/app.py:163: error: Untyped decorator makes function "echo_params" untyped  [misc]
- dummyserver/app.py:171: error: Untyped decorator makes function "headers" untyped  [misc]
- dummyserver/app.py:176: error: Untyped decorator makes function "headers_and_params" untyped  [misc]
- dummyserver/app.py:186: error: Untyped decorator makes function "multi_headers" untyped  [misc]
- dummyserver/app.py:191: error: Untyped decorator makes function "multi_redirect" untyped  [misc]
- dummyserver/app.py:206: error: Untyped decorator makes function "encodingrequest" untyped  [misc]
- dummyserver/app.py:230: error: Untyped decorator makes function "redirect" untyped  [misc]
- dummyserver/app.py:242: error: Untyped decorator makes function "redirect_after" untyped  [misc]
- dummyserver/app.py:258: error: Untyped decorator makes function "retry_after" untyped  [misc]
- dummyserver/app.py:272: error: Untyped decorator makes function "status" untyped  [misc]
- dummyserver/app.py:273: error: Untyped decorator makes function "status" untyped  [misc]
- dummyserver/app.py:281: error: Untyped decorator makes function "source_address" untyped  [misc]
- dummyserver/app.py:287: error: Untyped decorator makes function "successful_retry" untyped  [misc]
- dummyserver/app.py:305: error: Untyped decorator makes function "apply_caching" untyped  [misc]
- dummyserver/app.py:312: error: Untyped decorator makes function "slow" untyped  [misc]
- dummyserver/app.py:318: error: Untyped decorator makes function "bigfile" untyped  [misc]
- dummyserver/app.py:326: error: Untyped decorator makes function "mediumfile" untyped  [misc]
- dummyserver/app.py:333: error: Untyped decorator makes function "pyodide_upload" untyped  [misc]
- dummyserver/app.py:356: error: Untyped decorator makes function "pyodide" untyped  [misc]
- dummyserver/app.py:370: error: Untyped decorator makes function "wheel" untyped  [misc]
- noxfile.py:30: error: Unused "type: ignore" comment  [unused-ignore]
- noxfile.py:100: error: Untyped decorator makes function "test" untyped  [misc]
- noxfile.py:117: error: Untyped decorator makes function "test_integration" untyped  [misc]
- noxfile.py:123: error: Untyped decorator makes function "test_brotlipy" untyped  [misc]
- noxfile.py:150: error: Untyped decorator makes function "downstream_botocore" untyped  [misc]
- noxfile.py:169: error: Untyped decorator makes function "downstream_requests" untyped  [misc]
- noxfile.py:189: error: Untyped decorator makes function "format" untyped  [misc]
- noxfile.py:195: error: Untyped decorator makes function "lint" untyped  [misc]
- noxfile.py:203: error: Untyped decorator makes function "pyodideconsole" untyped  [misc]
- noxfile.py:222: error: Untyped decorator makes function "emscripten" untyped  [misc]
- noxfile.py:223: error: Untyped decorator makes function "emscripten" untyped  [misc]
- noxfile.py:320: error: Untyped decorator makes function "mypy" untyped  [misc]
- noxfile.py:338: error: Untyped decorator makes function "docs" untyped  [misc]
- src/urllib3/response.py:185: error: Returning Any from function declared to return "bytes"  [no-any-return]
- src/urllib3/http2.py:9: error: Unused "type: ignore" comment  [unused-ignore]
- src/urllib3/http2.py:10: error: Unused "type: ignore" comment  [unused-ignore]
- src/urllib3/http2.py:11: error: Unused "type: ignore" comment  [unused-ignore]
- docs/conf.py:64: error: Module "urllib3" does not explicitly export attribute "__version__"  [attr-defined]
- src/urllib3/contrib/pyopenssl.py:43: error: Unused "type: ignore" comment  [unused-ignore]
- src/urllib3/contrib/pyopenssl.py:64: error: Unused "type: ignore" comment  [unused-ignore]
- src/urllib3/contrib/pyopenssl.py:322: error: Unused "type: ignore" comment  [unused-ignore]
- src/urllib3/contrib/pyopenssl.py:326: error: Unused "type: ignore" comment  [unused-ignore]
- src/urllib3/contrib/pyopenssl.py:353: error: Unused "type: ignore" comment  [unused-ignore]
- src/urllib3/contrib/pyopenssl.py:390: error: Unused "type: ignore" comment  [unused-ignore]
- src/urllib3/contrib/pyopenssl.py:390: error: Incompatible return value type (got "X509 | None", expected "dict[str, list[Any]] | None")  [return-value]
- src/urllib3/contrib/pyopenssl.py:390: note: Error code "return-value" not covered by "type: ignore" comment
- src/urllib3/contrib/pyopenssl.py:393: error: Unused "type: ignore" comment  [unused-ignore]
- src/urllib3/contrib/pyopenssl.py:393: error: Incompatible return value type (got "bytes", expected "dict[str, list[Any]] | None")  [return-value]
- src/urllib3/contrib/pyopenssl.py:393: note: Error code "return-value" not covered by "type: ignore" comment
- src/urllib3/contrib/pyopenssl.py:401: error: Unused "type: ignore" comment  [unused-ignore]
- src/urllib3/contrib/pyopenssl.py:460: error: Argument 1 to "load_verify_locations" of "Context" has incompatible type "BytesIO"; expected "str | None"  [arg-type]
- src/urllib3/contrib/pyopenssl.py:482: error: Unused "type: ignore" comment  [unused-ignore]
- src/urllib3/contrib/pyopenssl.py:482: error: Argument 1 to "set_alpn_protos" of "Context" has incompatible type "list[bytes | str]"; expected "Sequence[bytes]"  [arg-type]
- src/urllib3/contrib/pyopenssl.py:482: note: Error code "arg-type" not covered by "type: ignore" comment
- test/test_response.py:808: error: Unused "type: ignore" comment  [unused-ignore]
- test/test_response.py:808: error: Value of type variable "_BufferT_co" of "TextIOWrapper" cannot be "HTTPResponse"  [type-var]
- test/test_response.py:808: note: Error code "type-var" not covered by "type: ignore" comment
- test/test_response.py:822: error: Unused "type: ignore" comment  [unused-ignore]
- test/test_response.py:822: error: Value of type variable "_BufferT_co" of "TextIOWrapper" cannot be "HTTPResponse"  [type-var]
- test/test_response.py:822: note: Error code "type-var" not covered by "type: ignore" comment
- test/test_response.py:829: error: Unused "type: ignore" comment  [unused-ignore]
- test/test_response.py:829: error: Value of type variable "_BufferT_co" of "TextIOWrapper" cannot be "HTTPResponse"  [type-var]
- test/test_response.py:829: note: Error code "type-var" not covered by "type: ignore" comment
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]
- test/contrib/test_pyopenssl.py:10: error: Unused "type: ignore" comment  [unused-ignore]
- test/contrib/test_pyopenssl.py:99: error: Argument 2 to "load_certificate" has incompatible type "str"; expected "bytes"  [arg-type]

flake8 (https://github.com/pycqa/flake8)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]

python-htmlgen (https://github.com/srittau/python-htmlgen)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]

arviz (https://github.com/arviz-devs/arviz)
- arviz/rcparams.py:337: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- arviz/stats/ecdf_utils.py:169: error: Incompatible return value type (got "floating[Any]", expected "float")  [return-value]
- arviz/wrappers/wrap_stan.py:107: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- arviz/plots/tsplot.py:288: error: Unused "type: ignore" comment  [unused-ignore]
- arviz/plots/tsplot.py:289: error: Unused "type: ignore" comment  [unused-ignore]
- arviz/plots/tsplot.py:323: error: Unused "type: ignore" comment  [unused-ignore]
- arviz/plots/tsplot.py:326: error: Unused "type: ignore" comment  [unused-ignore]
- arviz/plots/tsplot.py:354: error: Unused "type: ignore" comment  [unused-ignore]
- arviz/plots/tsplot.py:357: error: Unused "type: ignore" comment  [unused-ignore]
- arviz/plots/tsplot.py:399: error: Unused "type: ignore" comment  [unused-ignore]
- arviz/plots/tsplot.py:402: error: Unused "type: ignore" comment  [unused-ignore]
- arviz/plots/tsplot.py:405: error: Unused "type: ignore" comment  [unused-ignore]
- arviz/data/inference_data.py:410: error: Need type annotation for "group_kws" (hint: "group_kws: dict[<type>, <type>] = ...")  [var-annotated]
- arviz/data/inference_data.py:486: error: No overload variant of "to_netcdf" of "Dataset" matches argument types "str", "str", "str", "str"  [call-overload]
- arviz/data/inference_data.py:486: note: Possible overload variants:
- arviz/data/inference_data.py:486: note:     def to_netcdf(self, path: None = ..., mode: Literal['w', 'a'] = ..., format: Literal['NETCDF4', 'NETCDF4_CLASSIC', 'NETCDF3_64BIT', 'NETCDF3_CLASSIC'] | None = ..., group: str | None = ..., engine: Literal['netcdf4', 'scipy', 'h5netcdf'] | None = ..., encoding: Mapping[Any, Mapping[str, Any]] | None = ..., unlimited_dims: Iterable[Hashable] | None = ..., compute: bool = ..., invalid_netcdf: bool = ...) -> bytes
- arviz/data/inference_data.py:486: note:     def to_netcdf(self, path: str | PathLike[Any], mode: Literal['w', 'a'] = ..., format: Literal['NETCDF4', 'NETCDF4_CLASSIC', 'NETCDF3_64BIT', 'NETCDF3_CLASSIC'] | None = ..., group: str | None = ..., engine: Literal['netcdf4', 'scipy', 'h5netcdf'] | None = ..., encoding: Mapping[Any, Mapping[str, Any]] | None = ..., unlimited_dims: Iterable[Hashable] | None = ..., *, compute: Literal[False], invalid_netcdf: bool = ...) -> Any
- arviz/data/inference_data.py:486: note:     def to_netcdf(self, path: str | PathLike[Any], mode: Literal['w', 'a'] = ..., format: Literal['NETCDF4', 'NETCDF4_CLASSIC', 'NETCDF3_64BIT', 'NETCDF3_CLASSIC'] | None = ..., group: str | None = ..., engine: Literal['netcdf4', 'scipy', 'h5netcdf'] | None = ..., encoding: Mapping[Any, Mapping[str, Any]] | None = ..., unlimited_dims: Iterable[Hashable] | None = ..., compute: Literal[True] = ..., invalid_netcdf: bool = ...) -> None
- arviz/data/inference_data.py:486: note:     def to_netcdf(self, path: str | PathLike[Any], mode: Literal['w', 'a'] = ..., format: Literal['NETCDF4', 'NETCDF4_CLASSIC', 'NETCDF3_64BIT', 'NETCDF3_CLASSIC'] | None = ..., group: str | None = ..., engine: Literal['netcdf4', 'scipy', 'h5netcdf'] | None = ..., encoding: Mapping[Any, Mapping[str, Any]] | None = ..., unlimited_dims: Iterable[Hashable] | None = ..., compute: bool = ..., invalid_netcdf: bool = ...) -> Any | None
- arviz/data/inference_data.py:501: error: Incompatible types in assignment (expression has type "dict[Any, dict[str, bool]]", target has type "str")  [assignment]
- arviz/data/inference_data.py:1696: error: Unused "type: ignore" comment  [unused-ignore]
- arviz/data/inference_data.py:1697: error: Unused "type: ignore" comment  [unused-ignore]
- arviz/data/inference_data.py:1698: error: Unused "type: ignore" comment  [unused-ignore]
- arviz/data/inference_data.py:1699: error: Unused "type: ignore" comment  [unused-ignore]
- arviz/data/inference_data.py:1700: error: Unused "type: ignore" comment  [unused-ignore]
- arviz/data/inference_data.py:1701: error: Unused "type: ignore" comment  [unused-ignore]
- doc/sphinxext/gallery_generator.py:120: error: Need type annotation for "categorized_contents"  [var-annotated]
- arviz/plots/backends/matplotlib/posteriorplot.py:265: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- arviz/plots/backends/bokeh/posteriorplot.py:244: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- arviz/data/example_data/code/radon/radon.py:49: error: Module has no attribute "from_pymc3"  [attr-defined]
- arviz/tests/base_tests/test_utils.py:251: error: Function "_stack" could always be true in boolean context  [truthy-function]
- arviz/tests/base_tests/test_data_zarr.py:29: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- arviz/tests/base_tests/test_data.py:1525: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]

ppb-vector (https://github.com/ppb/ppb-vector)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]
- ppb_vector/__init__.py:356: error: Unused "type: ignore" comment  [unused-ignore]
- tests/test_typing.py:8: error: Unused "type: ignore" comment  [unused-ignore]
- tests/benchmark.py:13: error: Unused "type: ignore" comment  [unused-ignore]
- tests/benchmark.py:20: error: Unused "type: ignore" comment  [unused-ignore]

dulwich (https://github.com/dulwich/dulwich)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]
- dulwich/objects.py:383: error: Unused "type: ignore" comment  [unused-ignore]
- dulwich/config.py:57: error: Unused "type: ignore" comment  [unused-ignore]
- dulwich/config.py:642: error: Unused "type: ignore" comment  [unused-ignore]
- dulwich/config.py:644: error: Unused "type: ignore" comment  [unused-ignore]
- dulwich/config.py:645: error: Unused "type: ignore" comment  [unused-ignore]
- dulwich/config.py:646: error: Unused "type: ignore" comment  [unused-ignore]
- dulwich/pack.py:2780: error: Unused "type: ignore" comment  [unused-ignore]
- dulwich/pack.py:2781: error: Unused "type: ignore" comment  [unused-ignore]
- dulwich/repo.py:168: error: Unused "type: ignore" comment  [unused-ignore]
- dulwich/client.py:2212: error: Unused "type: ignore" comment  [unused-ignore]
- dulwich/client.py:2680: error: Unused "type: ignore" comment  [unused-ignore]
- dulwich/client.py:2764: error: Unused "type: ignore" comment  [unused-ignore]
- dulwich/cli.py:855: error: Unused "type: ignore" comment  [unused-ignore]

rich (https://github.com/Textualize/rich)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]
- rich/_null_file.py:48: error: Missing return statement  [empty-body]
- rich/_null_file.py:48: note: If the method is meant to be abstract, use @abc.abstractmethod
- rich/syntax.py:158: error: Argument 1 to "style_for_token" of "StyleMeta" has incompatible type "tuple[str, ...]"; expected "_TokenType"  [arg-type]
- rich/syntax.py:384: error: Incompatible types in assignment (expression has type "LexerMeta", variable has type "Lexer | None")  [assignment]
- rich/syntax.py:398: error: "Lexer" has no attribute "aliases"  [attr-defined]
- rich/syntax.py:399: error: "Lexer" has no attribute "aliases"  [attr-defined]
- rich/syntax.py:401: error: "Lexer" has no attribute "name"  [attr-defined]
- rich/syntax.py:482: error: Statement is unreachable  [unreachable]
- rich/syntax.py:491: error: "lexer" has type "Lexer" which does not implement __bool__ or __len__ so it could always be true in boolean context  [truthy-bool]
- rich/segment.py:607: error: No return value expected  [return-value]
- rich/pretty.py:66: error: Returning Any from function declared to return "Sequence[Attribute[Any]]"  [no-any-return]
- rich/padding.py:69: error: Redundant cast to "tuple[int, int]"  [redundant-cast]
- rich/padding.py:72: error: Redundant cast to "tuple[int, int, int, int]"  [redundant-cast]
- rich/console.py:92: error: Item "None" of "TextIOWrapper[_WrappedBuffer] | None" has no attribute "fileno"  [union-attr]
- rich/console.py:96: error: Item "None" of "TextIOWrapper[_WrappedBuffer] | None" has no attribute "fileno"  [union-attr]
- rich/console.py:100: error: Item "None" of "TextIOWrapper[_WrappedBuffer] | None" has no attribute "fileno"  [union-attr]
- rich/console.py:1311: error: Unused "type: ignore" comment  [unused-ignore]
- rich/_win32_console.py:15: error: Statement is unreachable  [unreachable]
- rich/_windows.py:25: error: Statement is unreachable  [unreachable]
- rich/_windows.py:40: error: Statement is unreachable  [unreachable]
- rich/progress.py:179: error: Definition of "writelines" in base class "IOBase" is incompatible with definition in base class "IO"  [misc]

itsdangerous (https://github.com/pallets/itsdangerous)
- src/itsdangerous/timed.py:57: error: Unused "type: ignore" comment  [unused-ignore]
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]

PyWinCtl (https://github.com/Kalmat/PyWinCtl)
- src/pywinctl/_main.py:264: error: Returning Any from function declared to return "int"  [no-any-return]
- src/pywinctl/_main.py:272: error: Returning Any from function declared to return "int"  [no-any-return]
- src/pywinctl/_main.py:280: error: Returning Any from function declared to return "int"  [no-any-return]
- src/pywinctl/_main.py:288: error: Returning Any from function declared to return "int"  [no-any-return]
- src/pywinctl/_main.py:296: error: Returning Any from function declared to return "int"  [no-any-return]
- src/pywinctl/_main.py:304: error: Returning Any from function declared to return "int"  [no-any-return]
- src/pywinctl/_main.py:417: error: Returning Any from function declared to return "int"  [no-any-return]
- src/pywinctl/_main.py:425: error: Returning Any from function declared to return "int"  [no-any-return]
- src/pywinctl/_main.py:704: error: Unused "type: ignore" comment  [unused-ignore]
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]

schema_salad (https://github.com/common-workflow-language/schema_salad)
- schema_salad/tests/test_subtypes.py:85:2: error: Untyped decorator makes function "test_subtypes" untyped  [misc]
- schema_salad/tests/test_cwl11.py:28:2: error: Untyped decorator makes function "cwl_v1_2_schema" untyped  [misc]
- schema_salad/tests/test_cg.py:190:2: error: Untyped decorator makes function "metaschema_pre" untyped  [misc]
- schema_salad/tests/conftest.py:6:2: error: Untyped decorator makes function "isolated_cache" untyped  [misc]
- schema_salad/tests/test_makedoc.py:57:2: error: Untyped decorator makes function "fixture_metaschema_doc" untyped  [misc]
- schema_salad/tests/test_cpp_codegen.py:26:2: error: Untyped decorator makes function "test_cwl_cpp_generations" untyped  [misc]
- schema_salad/tests/test_ref_resolver.py:28:2: error: Untyped decorator makes function "tmp_dir_fixture" untyped  [misc]
- schema_salad/tests/test_ref_resolver.py: note: In function "tmp_dir_fixture":
- schema_salad/tests/test_ref_resolver.py:32:6: error: Untyped decorator makes function "teardown" untyped  [misc]
- schema_salad/tests/test_ref_resolver.py: note: At top level:
- schema_salad/tests/test_ref_resolver.py:74:2: error: Untyped decorator makes function "test_DefaultFetcher_urljoin_win32" untyped  [misc]
- schema_salad/tests/test_ref_resolver.py: note: In function "test_resolve_missing_step_id":
- schema_salad/tests/test_ref_resolver.py:264:62: error: List item 1 has incompatible type "str | None"; expected "str"  [list-item]
- schema_salad/tests/test_ref_resolver.py:264:75: error: List item 2 has incompatible type "str | None"; expected "str"  [list-item]
- schema_salad/tests/test_errors.py:274:2: error: Untyped decorator makes function "test_errors_previously_defined_dict_key" untyped  [misc]
+ note: In module imported here,
+ schema_salad/__init__.py:1: note: ... from here:
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655:23: error: expected ':'  [syntax]

Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:1655: error: expected ':'  [syntax]
- tanjun/dependencies/data.py:161: error: Variable "type_" is not valid as a type  [valid-type]
- tanjun/dependencies/data.py:161: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/dependencies/data.py:221: error: Argument "callback" to "inject" has incompatible type "Callable[..., Coroutine[Any, Any, _T]]"; expected "Callable[..., Union[Coroutine[Any, Any, Never], Never]]"  [arg-type]
- tanjun/dependencies/data.py:351: error: Argument "callback" to "inject" has incompatible type "Callable[..., Coroutine[Any, Any, _T]]"; expected "Callable[..., Union[Coroutine[Any, Any, Never], Never]]"  [arg-type]
- tanjun/dependencies/reloaders.py:409: error: "ABC" has no attribute "type"  [attr-defined]
- tanjun/dependencies/reloaders.py:409: error: "ABC" has no attribute "name"  [attr-defined]
- tanjun/dependencies/reloaders.py:409: error: "ABC" has no attribute "build"  [attr-defined]
- tanjun/context/slash.py:996: error: List item 0 has incompatible type "_OtherT"; expected "_T"  [list-item]
- tanjun/context/slash.py:1045: error: Signature of "command" incompatible with supertype "Context"  [override]
- tanjun/context/slash.py:1045: note:      Superclass:
- tanjun/context/slash.py:1045: note:          Optional[ExecutableCommand[SlashContext]]
- tanjun/context/slash.py:1045: note:      Subclass:
- tanjun/context/slash.py:1045: note:          Optional[BaseSlashCommand]
- tanjun/context/message.py:130: error: Signature of "command" incompatible with supertype "Context"  [override]
- tanjun/context/message.py:130: note:      Superclass:
- tanjun/context/message.py:130: note:          Optional[ExecutableCommand[MessageContext]]
- tanjun/context/message.py:130: note:      Subclass:
- tanjun/context/message.py:130: note:          Optional[MessageCommand[Any]]
- tanjun/schedules.py:338: error: Argument 1 to "call_with_async_di" of "Client" has incompatible type "_CallbackSigT"; expected "Callable[..., Union[Coroutine[Any, Any, Never], Never]]"  [arg-type]
- tanjun/schedules.py:364: error: Argument 1 to "call_with_async_di" of "Client" has incompatible type "Callable[..., Coroutine[Any, Any, None]]"; expected "Callable[..., Union[Coroutine[Any, Any, Never], Never]]"  [arg-type]
- tanjun/schedules.py:387: error: Argument 1 to "call_with_async_di" of "Client" has incompatible type "Callable[..., Coroutine[Any, Any, None]]"; expected "Callable[..., Union[Coroutine[Any, Any, Never], Never]]"  [arg-type]
- tanjun/schedules.py:1050: error: Argument 1 to "call_with_async_di" of "Client" has incompatible type "_CallbackSigT"; expected "Callable[..., Union[Coroutine[Any, Any, Never], Never]]"  [arg-type]
- tanjun/parsing.py:599: error: "Never" has no attribute "__iter__" (not iterable)  [attr-defined]
- tanjun/parsing.py:1640: error: Statement is unreachable  [unreachable]
- tanjun/parsing.py:1650: error: Statement is unreachable  [unreachable]
- tanjun/context/menu.py:101: error: Signature of "command" incompatible with supertype "Context"  [override]
- tanjun/context/menu.py:101: note:      Superclass:
- tanjun/context/menu.py:101: note:          Optional[ExecutableCommand[MenuContext]]
- tanjun/context/menu.py:101: note:      Subclass:
- tanjun/context/menu.py:101: note:          Optional[MenuCommand[Any, Any]]
- tanjun/context/menu.py:129: error: Incompatible return value type (got "Unique", expected "Union[InteractionMember, User, Message]")  [return-value]
- tanjun/context/menu.py:141: error: Incompatible return value type (got "CommandType", expected "Literal[CommandType.USER, CommandType.MESSAGE]")  [return-value]
- tanjun/context/menu.py:194: error: Argument "default" to "resolve_to_member" of "MenuContext" has incompatible type "None"; expected "User"  [arg-type]
- tanjun/dependencies/limiters.py:817: error: Incompatible types in assignment (expression has type "_Cooldown", variable has type "Optional[AbstractCooldownBucket]")  [assignment]
- tanjun/dependencies/limiters.py:819: error: Item "AbstractCooldownBucket" of "Optional[AbstractCooldownBucket]" has no attribute "check"  [union-attr]
- tanjun/dependencies/limiters.py:819: error: Item "None" of "Optional[AbstractCooldownBucket]" has no attribute "check"  [union-attr]
- tanjun/dependencies/limiters.py:856: error: Incompatible types in assignment (expression has type "Optional[_Cooldown]", variable has type "Optional[AbstractCooldownBucket]")  [assignment]
- tanjun/dependencies/limiters.py:857: error: "Never" has no attribute "unlock"  [attr-defined]
- tanjun/dependencies/limiters.py:1134: error: Cannot determine type of "default_value"  [has-type]
- tanjun/commands/slash.py:264: error: Type argument "_SlashCallbackSigT" of "MenuCommand" must be a subtype of "Callable[[MenuContext, Any, VarArg(Any), KwArg(Any)], Coroutine[Any, Any, None]]"  [type-var]
- tanjun/commands/slash.py:264: error: Type argument "_SlashCallbackSigT" of "MessageCommand" must be a subtype of "Callable[[MessageContext, VarArg(Any), KwArg(Any)], Coroutine[Any, Any, None]]"  [type-var]
- tanjun/commands/slash.py:373: error: Type argument "_SlashCallbackSigT" of "MenuCommand" must be a subtype of "Callable[[MenuContext, Any, VarArg(Any), KwArg(Any)], Coroutine[Any, Any, None]]"  [type-var]
- tanjun/commands/slash.py:373: error: Type argument "_SlashCallbackSigT" of "MessageCommand" must be a subtype of "Callable[[MessageContext, VarArg(Any), KwArg(Any)], Coroutine[Any, Any, None]]"  [type-var]
- tanjun/commands/slash.py:377: error: Redundant cast to "_SlashCallbackSigT"  [redundant-cast]
- tanjun/commands/slash.py:816: error: Statement is unreachable  [unreachable]
- tanjun/commands/slash.py:1270: error: Type argument "_SlashCallbackSigT" of "MenuCommand" must be a subtype of "Callable[[MenuContext, Any, VarArg(Any), KwArg(Any)], Coroutine[Any, Any, None]]"  [type-var]
- tanjun/commands/slash.py:1270: error: Type argument "_SlashCallbackSigT" of "MessageCommand" must be a subtype of "Callable[[MessageContext, VarArg(Any), KwArg(Any)], Coroutine[Any, Any, None]]"  [type-var]
- tanjun/commands/slash.py:1324: error: Type argument "_SlashCallbackSigT" of "MenuCommand" must be a subtype of "Callable[[MenuContext, Any, VarArg(Any), KwArg(Any)], Coroutine[Any, Any, None]]"  [type-var]
- tanjun/commands/slash.py:1324: error: Type argument "_SlashCallbackSigT" of "MessageCommand" must be a subtype of "Callable[[MessageContext, VarArg(Any), KwArg(Any)], Coroutine[Any, Any, None]]"  [type-var]
- tanjun/commands/slash.py:1517: error: Type argument "_SlashCallbackSigT" of "MenuCommand" must be a subtype of "Callable[[MenuContext, Any, VarArg(Any), KwArg(Any)], Coroutine[Any, Any, None]]"  [type-var]
- tanjun/commands/slash.py:1517: error: Type argument "_SlashCallbackSigT" of "MessageCommand" must be a subtype of "Callable[[MessageContext, VarArg(Any), KwArg(Any)], Coroutine[Any, Any, None]]"  [type-var]
- tanjun/commands/slash.py:1636: error: Redundant cast to "_SlashCallbackSigT"  [redundant-cast]
- tanjun/commands/slash.py:1777: error: Statement is unreachable  [unreachable]
- tanjun/commands/slash.py:3171: error: Argument 1 to "call_with_async_di" of "Context" has incompatible type "_SlashCallbackSigT"; expected "Callable[..., Union[Coroutine[Any, Any, Never], Never]]"  [arg-type]
- tanjun/commands/slash.py:3202: error: Incompatible types in assignment (expression has type "Optional[Callable[[AutocompleteContext, float, VarArg(Any), KwArg(Any)], Coroutine[Any, Any, None]]]", variable has type "Optional[Callable[[AutocompleteContext, str, VarArg(Any), KwArg(Any)], Coroutine[Any, Any, None]]]")  [assignment]
- tanjun/commands/slash.py:3205: error: Incompatible types in assignment (expression has type "Optional[Callable[[AutocompleteContext, int, VarArg(Any), KwArg(Any)], Coroutine[Any, Any, None]]]", variable has type

... (truncated 20914 lines) ...

github-actions[bot] avatar Aug 06 '24 03:08 github-actions[bot]

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Aug 06 '24 04:08 github-actions[bot]

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Aug 06 '24 05:08 github-actions[bot]

We've stopped taking PRs for Python 3.14 for now, but I'll grandfather this in, since the work is already done. Thanks!

Thanks! Understand with things changing so quickly, the maintenance burden can be quite annoying, so makes sense.

max-muoto avatar Aug 29 '24 15:08 max-muoto