Closed
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Author
|
Failing tests seem to be unrelated to changes in |
Collaborator
|
#15653 fixes the unrelated problems. |
Contributor
|
Diff from mypy_primer, showing the effect of this PR on open source code: mypy (https://github.com/python/mypy)
- error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ .../projects/mypy/mypy/__init__.py: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
- note: use --pdb to drop into pdb
+ .../projects/mypy/mypy/__init__.py: note: use --pdb to drop into pdb
+ File "", line 6, in <module>
+ sys.exit(console_entry())
- File "/__main__.py", line 15, in console_entry
- main()
- ~~~~^^
- File "mypy/main.py", line 141, in main
- return
- File "mypy/main.py", line 225, in run_build
- show_messages(new_messages, f, formatter, options)
- File "mypy/build.py", line 384, in build
- File "mypy/build.py", line 298, in connect
+ File "mypy/build.py", line 2759, in wrap_context
- continue
- TypeError: mypy.ipc.BadStatus object expected; got AssertionError
+ meta_source_hash: str | None,
+ ModuleNotFoundError: No module named 'ast_serialize'
paasta (https://github.com/yelp/paasta)
- paasta_tools/utils.py:3434: error: "APIClient" gets multiple values for keyword argument "base_url" [misc]
- paasta_tools/utils.py:4104: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/mesos/slave.py:113: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/secret_providers/vault.py:179: error: Item "Response" of "dict[str, Any] | Response" has no attribute "get" [union-attr]
- paasta_tools/secret_providers/vault.py:207: error: Module has no attribute "exceptions" [attr-defined]
- paasta_tools/kubernetes_tools.py:1523: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/kubernetes_tools.py:4268: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/mesos/master.py:151: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/mesos/master.py:304: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/tron/client.py:114: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/api/settings.py:30: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/tron_tools.py:618: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/flink_tools.py:732: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/check_services_replication_tools.py:315: error: Redundant cast to "int" [redundant-cast]
- paasta_tools/cleanup_kubernetes_jobs.py:207: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/cli/utils.py:1074: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/instance/kubernetes.py:751: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/instance/kubernetes.py:1328: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/cli/cmds/get_image_version.py:60: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/cli/cmds/mark_for_deployment.py:154: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/cli/cmds/mark_for_deployment.py:164: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/cli/cmds/rollback.py:79: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/cli/cmds/rollback.py:89: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/cli/cmds/rollback.py:100: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/cli/cmds/rollback.py:116: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/cli/cmds/spark_run.py:898: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/cli/cmds/spark_run.py:912: error: Unused "type: ignore" comment [unused-ignore]
- paasta_tools/cli/cmds/local_run.py:910: error: Unused "type: ignore" comment [unused-ignore]
prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/utilities/names.py:3: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/_deprecated.py:3: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/_git.py:17: error: Incompatible types in assignment (expression has type "str", variable has type "bytes") [assignment]
- src/prefect/utilities/_git.py:21: error: Incompatible return value type (got "bytes", expected "str | None") [return-value]
- src/prefect/utilities/_git.py:30: error: Incompatible types in assignment (expression has type "str", variable has type "bytes") [assignment]
- src/prefect/utilities/_git.py:34: error: Incompatible return value type (got "bytes", expected "str | None") [return-value]
- src/prefect/utilities/annotations.py:9: error: Unexpected argument to "TypeVar()": "infer_variance" [misc]
- src/prefect/utilities/annotations.py:12: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:12: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/annotations.py:21: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:21: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/annotations.py:25: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:25: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/annotations.py:27: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:27: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/annotations.py:30: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:30: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/annotations.py:42: error: "BaseAnnotation" expects no type arguments, but 1 given [type-arg]
- src/prefect/utilities/annotations.py:42: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:42: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/annotations.py:50: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/annotations.py:50: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:50: note: Error code "valid-type" not covered by "type: ignore" comment
- src/prefect/utilities/annotations.py:50: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/annotations.py:55: error: "BaseAnnotation" expects no type arguments, but 1 given [type-arg]
- src/prefect/utilities/annotations.py:55: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:55: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/annotations.py:70: error: "BaseAnnotation" expects no type arguments, but 1 given [type-arg]
- src/prefect/utilities/annotations.py:70: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:70: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/annotations.py:94: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:94: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/annotations.py:98: error: "BaseAnnotation" expects no type arguments, but 1 given [type-arg]
- src/prefect/utilities/annotations.py:98: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:98: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/annotations.py:139: error: "quote" expects no type arguments, but 1 given [type-arg]
- src/prefect/utilities/annotations.py:139: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:139: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/annotations.py:140: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:140: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/annotations.py:155: error: "BaseAnnotation" expects no type arguments, but 1 given [type-arg]
- src/prefect/utilities/annotations.py:155: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:155: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/annotations.py:172: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:172: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/annotations.py:179: error: Variable "prefect.utilities.annotations.T" is not valid as a type [valid-type]
- src/prefect/utilities/annotations.py:179: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/dispatch.py:100: error: "classmethod" used with a non-method [misc]
- src/prefect/_internal/concurrency/inspection.py:80: error: Incompatible types in assignment (expression has type "FrameType | None", variable has type "FrameType") [assignment]
- src/prefect/utilities/collections.py:74: error: Incompatible return value type (got "auto", expected "str") [return-value]
- src/prefect/utilities/collections.py:81: error: Unexpected argument to "TypeVar()": "infer_variance" [misc]
- src/prefect/utilities/collections.py:82: error: Unexpected argument to "TypeVar()": "infer_variance" [misc]
- src/prefect/utilities/collections.py:83: error: Unexpected argument to "TypeVar()": "infer_variance" [misc]
- src/prefect/utilities/collections.py:84: error: Unexpected argument to "TypeVar()": "infer_variance" [misc]
- src/prefect/utilities/collections.py:85: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:85: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:85: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:89: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:89: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:89: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:103: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:103: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:103: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:104: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:104: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:110: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:110: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:110: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:112: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:112: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:114: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:114: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:118: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:118: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:118: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:129: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:129: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:129: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:131: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:131: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:131: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:141: error: Redundant cast to "NestedDict[Any]" [redundant-cast]
- src/prefect/utilities/collections.py:141: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:141: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:141: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:185: error: Incompatible default for parameter "types" (default has type "type[object]", parameter has type "type[T] | tuple[type[T], ...]") [assignment]
- src/prefect/utilities/collections.py:249: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:249: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:253: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:253: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:275: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:275: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:279: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:279: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:299: error: Overloaded function signature 5 will never be matched: signature 3's parameter type(s) are the same or broader [overload-cannot-match]
- src/prefect/utilities/collections.py:301: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:301: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:305: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:305: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:311: error: Missing return statement [return]
- src/prefect/utilities/collections.py:313: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:313: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:317: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:317: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:381: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:381: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:398: error: Incompatible types in assignment (expression has type "Callable[[Any], Any]", variable has type "Callable[[Any, dict[str, VT?]], Any]") [assignment]
- src/prefect/utilities/collections.py:412: error: Too few arguments [call-arg]
- src/prefect/utilities/collections.py:462: error: Redundant cast to "BaseAnnotation" [redundant-cast]
- src/prefect/utilities/collections.py:462: error: "BaseAnnotation" expects no type arguments, but 1 given [type-arg]
- src/prefect/utilities/collections.py:464: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:464: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:494: error: Item "ABCMeta" of "type[list[Any]] | type[tuple[Any]] | type[set[Any]]" has no attribute "_make" [union-attr]
- src/prefect/utilities/collections.py:496: error: Cannot instantiate type "type[tuple[Any]]" [misc]
- src/prefect/utilities/collections.py:501: error: Redundant cast to "dict[Any, Any]" [redundant-cast]
- src/prefect/utilities/collections.py:504: error: "None" object is not iterable [misc]
- src/prefect/utilities/collections.py:509: error: Argument 1 to "dict" has incompatible type "list[Any | None]"; expected "Iterable[tuple[Any, Any]]" [arg-type]
- src/prefect/utilities/collections.py:558: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:558: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:558: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:559: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:559: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:559: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:567: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:567: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:567: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:568: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:568: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:568: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:585: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:585: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:585: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:620: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:620: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:620: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:621: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:621: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:625: error: Overloaded function signature 2 will never be matched: signature 1's parameter type(s) are the same or broader [overload-cannot-match]
- src/prefect/utilities/collections.py:626: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:626: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:626: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:626: error: Variable "prefect.utilities.collections.R" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:627: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:627: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:627: error: Variable "prefect.utilities.collections.R" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:631: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:631: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:631: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:631: error: Variable "prefect.utilities.collections.R" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:632: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:632: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:632: error: Variable "prefect.utilities.collections.R" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:668: error: Incompatible types in assignment (expression has type "int", variable has type "str") [assignment]
- src/prefect/utilities/collections.py:673: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/collections.py:674: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:674: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:680: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:680: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:680: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:709: error: Redundant cast to "NestedDict[Any]" [redundant-cast]
- src/prefect/utilities/collections.py:709: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:709: error: Variable "prefect.utilities.collections.VT" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:709: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:714: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:714: error: Variable "prefect.utilities.collections.VT1" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:714: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:714: error: Variable "prefect.utilities.collections.VT2" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:715: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:715: error: Variable "prefect.utilities.collections.VT1" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:715: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:715: error: Variable "prefect.utilities.collections.VT2" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:731: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:731: error: Variable "prefect.utilities.collections.VT1" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:731: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:732: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:732: error: Variable "prefect.utilities.collections.VT2" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:732: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:736: error: Redundant cast to "VT2? | NestedDict[Any]" [redundant-cast]
- src/prefect/utilities/collections.py:736: error: Variable "prefect.utilities.collections.VT2" is not valid as a type [valid-type]
- src/prefect/utilities/collections.py:736: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/collections.py:736: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:740: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/utilities/collections.py:750: error: Bad number of arguments for type alias, expected 1, given 2 [type-arg]
- src/prefect/_experimental/plugins/spec.py:88: error: Missing return statement [empty-body]
- src/prefect/settings/sources.py:36: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/settings/sources.py:79: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/settings/sources.py:117: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/settings/sources.py:156: error: Incompatible types in assignment (expression has type "str | Any | None", variable has type "str") [assignment]
- src/prefect/settings/sources.py:311: error: Attribute "toml_data" already defined on line 306 [no-redef]
- src/prefect/settings/sources.py:328: error: Attribute "toml_data" already defined on line 323 [no-redef]
- src/prefect/_vendor/croniter/croniter.py:73: error: Cannot assign to a type [misc]
- src/prefect/_vendor/croniter/croniter.py:73: error: Incompatible types in assignment (expression has type "type[dict[_KT@dict, _VT@dict]]", variable has type "type[OrderedDict[_KT@OrderedDict, _VT@OrderedDict]]") [assignment]
- src/prefect/_vendor/croniter/croniter.py:80: error: Incompatible types in assignment (expression has type "_UTCclass", variable has type "timezone") [assignment]
- src/prefect/_vendor/croniter/croniter.py:134: error: Need type annotation for "TIMESTAMP_TO_DT_CACHE" (hint: "TIMESTAMP_TO_DT_CACHE: dict[<type>, <type>] = ...") [var-annotated]
- src/prefect/_vendor/croniter/croniter.py:135: error: Need type annotation for "EXPRESSIONS" (hint: "EXPRESSIONS: dict[<type>, <type>] = ...") [var-annotated]
- src/prefect/_vendor/croniter/croniter.py:194: error: Need type annotation for "ALPHACONV" [var-annotated]
- src/prefect/_vendor/croniter/croniter.py:208: error: Need type annotation for "LOWMAP" [var-annotated]
- src/prefect/utilities/processutils/__init__.py:36: error: Unexpected argument to "TypeVar()": "infer_variance" [misc]
- src/prefect/utilities/processutils/__init__.py:349: error: Variable "prefect.utilities.processutils.T" is not valid as a type [valid-type]
- src/prefect/utilities/processutils/__init__.py:349: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/processutils/__init__.py:375: error: Variable "prefect.utilities.processutils.T" is not valid as a type [valid-type]
- src/prefect/utilities/processutils/__init__.py:375: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/processutils/__init__.py:387: error: Variable "prefect.utilities.processutils.T" is not valid as a type [valid-type]
- src/prefect/utilities/processutils/__init__.py:387: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/processutils/__init__.py:409: error: Variable "prefect.utilities.processutils.T" is not valid as a type [valid-type]
- src/prefect/utilities/processutils/__init__.py:409: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/_experimental/sla/objects.py:36: error: Decorators on top of @property are not supported [prop-decorator]
- src/prefect/settings/models/_defaults.py:105: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/_experimental/sla/client.py:38: error: Argument 2 to "request" of "BaseClient" has incompatible type "str"; expected "Literal['/admin/settings', '/admin/version', '/artifacts/', '/artifacts/{id}', '/artifacts/{key}/latest', '/artifacts/count', '/artifacts/filter', '/artifacts/latest/count', '/artifacts/latest/filter', '/automations/', '/automations/{id}', '/automations/count', '/automations/filter', '/automations/owned-by/{resource_id}', '/automations/related-to/{resource_id}', '/block_capabilities/', '/block_documents/', '/block_documents/{id}', '/block_documents/count', '/block_documents/filter', '/block_schemas/', '/block_schemas/{id}', '/block_schemas/checksum/{checksum}', '/block_schemas/filter', '/block_types/', '/block_types/{id}', '/block_types/filter', '/block_types/install_system_block_types', '/block_types/slug/{slug}', '/block_types/slug/{slug}/block_documents', '/block_types/slug/{slug}/block_documents/name/{block_document_name}', '/collections/views/{view}', '/concurrency_limits/', '/concurrency_limits/{id}', '/concurrency_limits/decrement', '/concurrency_limits/filter', '/concurrency_limits/increment', '/concurrency_limits/tag/{tag}', '/concurrency_limits/tag/{tag}/reset', '/csrf-token', '/deployments/', '/deployments/{id}', '/deployments/{id}/branch', '/deployments/{id}/create_flow_run', '/deployments/{id}/pause_deployment', '/deployments/{id}/resume_deployment', '/deployments/{id}/schedule', '/deployments/{id}/schedules', '/deployments/{id}/schedules/{schedule_id}', '/deployments/{id}/work_queue_check', '/deployments/count', '/deployments/filter', '/deployments/get_scheduled_flow_runs', '/deployments/name/{flow_name}/{deployment_name}', '/deployments/paginate', '/events', '/events/count-by/{countable}', '/events/filter', '/events/filter/next', '/flow_run_states/', '/flow_run_states/{id}', '/flow_runs/', '/flow_runs/{id}', '/flow_runs/{id}/graph', '/flow_runs/{id}/graph-v2', '/flow_runs/{id}/input', '/flow_runs/{id}/input/{key}', '/flow_runs/{id}/input/filter', '/flow_runs/{id}/labels', '/flow_runs/{id}/logs/download', '/flow_runs/{id}/resume', '/flow_runs/{id}/set_state', '/flow_runs/count', '/flow_runs/filter', '/flow_runs/history', '/flow_runs/lateness', '/flow_runs/paginate', '/flows/', '/flows/{id}', '/flows/count', '/flows/filter', '/flows/name/{name}', '/flows/paginate', '/health', '/hello', '/logs/', '/logs/filter', '/ready', '/saved_searches/', '/saved_searches/{id}', '/saved_searches/filter', '/task_run_states/', '/task_run_states/{id}', '/task_runs/', '/task_runs/{id}', '/task_runs/{id}/set_state', '/task_runs/count', '/task_runs/filter', '/task_runs/history', '/task_workers/filter', '/templates/validate', '/ui/flow_runs/count-task-runs', '/ui/flow_runs/history', '/ui/flows/count-deployments', '/ui/flows/next-runs', '/ui/schemas/validate', '/ui/task_runs/count', '/ui/task_runs/dashboard/counts', '/v2/concurrency_limits/', '/v2/concurrency_limits/{id_or_name}', '/v2/concurrency_limits/decrement', '/v2/concurrency_limits/decrement-with-lease', '/v2/concurrency_limits/filter', '/v2/concurrency_limits/increment', '/v2/concurrency_limits/increment-with-lease', '/v2/concurrency_limits/leases/{lease_id}/renew', '/variables/', '/variables/{id}', '/variables/count', '/variables/filter', '/variables/name/{name}', '/version', '/work_pools/', '/work_pools/{name}', '/work_pools/{name}/concurrency_status', '/work_pools/{name}/get_scheduled_flow_runs', '/work_pools/{work_pool_name}/queues', '/work_pools/{work_pool_name}/queues/{name}', '/work_pools/{work_pool_name}/queues/filter', '/work_pools/{work_pool_name}/workers/{name}', '/work_pools/{work_pool_name}/workers/filter', '/work_pools/{work_pool_name}/workers/heartbeat', '/work_pools/count', '/work_pools/filter', '/work_queues/', '/work_queues/{id}', '/work_queues/{id}/get_runs', '/work_queues/{id}/concurrency_status', '/work_queues/{id}/status', '/work_queues/filter', '/work_queues/name/{name}']" [arg-type]
- src/prefect/_experimental/sla/client.py:79: error: Argument 2 to "request" of "BaseAsyncClient" has incompatible type "str"; expected "Literal['/admin/settings', '/admin/version', '/artifacts/', '/artifacts/{id}', '/artifacts/{key}/latest', '/artifacts/count', '/artifacts/filter', '/artifacts/latest/count', '/artifacts/latest/filter', '/automations/', '/automations/{id}', '/automations/count', '/automations/filter', '/automations/owned-by/{resource_id}', '/automations/related-to/{resource_id}', '/block_capabilities/', '/block_documents/', '/block_documents/{id}', '/block_documents/count', '/block_documents/filter', '/block_schemas/', '/block_schemas/{id}', '/block_schemas/checksum/{checksum}', '/block_schemas/filter', '/block_types/', '/block_types/{id}', '/block_types/filter', '/block_types/install_system_block_types', '/block_types/slug/{slug}', '/block_types/slug/{slug}/block_documents', '/block_types/slug/{slug}/block_documents/name/{block_document_name}', '/collections/views/{view}', '/concurrency_limits/', '/concurrency_limits/{id}', '/concurrency_limits/decrement', '/concurrency_limits/filter', '/concurrency_limits/increment', '/concurrency_limits/tag/{tag}', '/concurrency_limits/tag/{tag}/reset', '/csrf-token', '/deployments/', '/deployments/{id}', '/deployments/{id}/branch', '/deployments/{id}/create_flow_run', '/deployments/{id}/pause_deployment', '/deployments/{id}/resume_deployment', '/deployments/{id}/schedule', '/deployments/{id}/schedules', '/deployments/{id}/schedules/{schedule_id}', '/deployments/{id}/work_queue_check', '/deployments/count', '/deployments/filter', '/deployments/get_scheduled_flow_runs', '/deployments/name/{flow_name}/{deployment_name}', '/deployments/paginate', '/events', '/events/count-by/{countable}', '/events/filter', '/events/filter/next', '/flow_run_states/', '/flow_run_states/{id}', '/flow_runs/', '/flow_runs/{id}', '/flow_runs/{id}/graph', '/flow_runs/{id}/graph-v2', '/flow_runs/{id}/input', '/flow_runs/{id}/input/{key}', '/flow_runs/{id}/input/filter', '/flow_runs/{id}/labels', '/flow_runs/{id}/logs/download', '/flow_runs/{id}/resume', '/flow_runs/{id}/set_state', '/flow_runs/count', '/flow_runs/filter', '/flow_runs/history', '/flow_runs/lateness', '/flow_runs/paginate', '/flows/', '/flows/{id}', '/flows/count', '/flows/filter', '/flows/name/{name}', '/flows/paginate', '/health', '/hello', '/logs/', '/logs/filter', '/ready', '/saved_searches/', '/saved_searches/{id}', '/saved_searches/filter', '/task_run_states/', '/task_run_states/{id}', '/task_runs/', '/task_runs/{id}', '/task_runs/{id}/set_state', '/task_runs/count', '/task_runs/filter', '/task_runs/history', '/task_workers/filter', '/templates/validate', '/ui/flow_runs/count-task-runs', '/ui/flow_runs/history', '/ui/flows/count-deployments', '/ui/flows/next-runs', '/ui/schemas/validate', '/ui/task_runs/count', '/ui/task_runs/dashboard/counts', '/v2/concurrency_limits/', '/v2/concurrency_limits/{id_or_name}', '/v2/concurrency_limits/decrement', '/v2/concurrency_limits/decrement-with-lease', '/v2/concurrency_limits/filter', '/v2/concurrency_limits/increment', '/v2/concurrency_limits/increment-with-lease', '/v2/concurrency_limits/leases/{lease_id}/renew', '/variables/', '/variables/{id}', '/variables/count', '/variables/filter', '/variables/name/{name}', '/version', '/work_pools/', '/work_pools/{name}', '/work_pools/{name}/concurrency_status', '/work_pools/{name}/get_scheduled_flow_runs', '/work_pools/{work_pool_name}/queues', '/work_pools/{work_pool_name}/queues/{name}', '/work_pools/{work_pool_name}/queues/filter', '/work_pools/{work_pool_name}/workers/{name}', '/work_pools/{work_pool_name}/workers/filter', '/work_pools/{work_pool_name}/workers/heartbeat', '/work_pools/count', '/work_pools/filter', '/work_queues/', '/work_queues/{id}', '/work_queues/{id}/get_runs', '/work_queues/{id}/concurrency_status', '/work_queues/{id}/status', '/work_queues/filter', '/work_queues/name/{name}']" [arg-type]
- src/prefect/utilities/schema_tools/hydration.py:323: error: Redundant cast to "list[Any]" [redundant-cast]
- src/prefect/settings/base.py:186: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/settings/base.py:207: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/settings/base.py:214: error: Unexpected keyword argument "total" for "__init_subclass__" of "object" [call-arg]
- src/prefect/settings/base.py:260: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/server/utilities/database.py:32: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/server/utilities/database.py:33: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/server/utilities/database.py:34: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/server/utilities/database.py:35: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/server/utilities/database.py:54: error: Unexpected argument to "TypeVar()": "infer_variance" [misc]
- src/prefect/server/utilities/database.py:55: error: Unexpected argument to "TypeVar()": "infer_variance" [misc]
- src/prefect/server/utilities/database.py:57: error: Variable "prefect.server.utilities.database.T" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:57: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/server/utilities/database.py:58: error: Variable "prefect.server.utilities.database.R" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:58: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/server/utilities/database.py:59: error: Variable "prefect.server.utilities.database.T" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:59: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/server/utilities/database.py:59: error: Variable "prefect.server.utilities.database.R" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:60: error: Variable "prefect.server.utilities.database.R" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:60: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/server/utilities/database.py:61: error: Variable "prefect.server.utilities.database.T" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:61: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/server/utilities/database.py:61: error: Variable "prefect.server.utilities.database.R" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:70: error: Variable "prefect.server.utilities.database.T" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:70: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/server/utilities/database.py:70: error: Nested parameter specifications are not allowed [valid-type]
- src/prefect/server/utilities/database.py:70: error: Variable "prefect.server.utilities.database.R" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:74: error: Nested parameter specifications are not allowed [valid-type]
- src/prefect/server/utilities/database.py:74: error: Variable "prefect.server.utilities.database.R" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:74: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/server/utilities/database.py:78: error: Variable "prefect.server.utilities.database.T" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:78: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/server/utilities/database.py:78: error: Nested parameter specifications are not allowed [valid-type]
- src/prefect/server/utilities/database.py:78: error: Variable "prefect.server.utilities.database.R" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:79: error: Variable "prefect.server.utilities.database.T" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:79: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/server/utilities/database.py:79: error: Nested parameter specifications are not allowed [valid-type]
- src/prefect/server/utilities/database.py:79: error: Variable "prefect.server.utilities.database.R" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:170: error: Missing return statement [return]
- src/prefect/server/utilities/database.py:279: error: Variable "prefect.server.utilities.database.T" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:279: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/server/utilities/database.py:288: error: "Pydantic" expects no type arguments, but 1 given [type-arg]
- src/prefect/server/utilities/database.py:295: error: Variable "prefect.server.utilities.database.T" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:295: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/server/utilities/database.py:302: error: Attribute "impl" already defined on line 273 [no-redef]
- src/prefect/server/utilities/database.py:307: error: Variable "prefect.server.utilities.database.T" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:307: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/server/utilities/database.py:320: error: Missing return statement [return]
- src/prefect/server/utilities/database.py:322: error: Variable "prefect.server.utilities.database.T" is not valid as a type [valid-type]
- src/prefect/server/utilities/database.py:322: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/server/utilities/database.py:354: error: Bad number of arguments for type alias, expected 0, given 1 [type-arg]
- src/prefect/server/utilities/database.py:355: error: Bad number of arguments for type alias, expected 0, given 1 [type-arg]
- src/prefect/server/utilities/database.py:373: error: Bad number of arguments for type alias, expected 0, given 1 [type-arg]
- src/prefect/server/utilities/database.py:374: error: Bad number of arguments for type alias, expected 0, given 1 [type-arg]
- src/prefect/server/utilities/database.py:392: error: Bad number of arguments for type alias, expected 0, given 1 [type-arg]
- src/prefect/server/utilities/database.py:393: error: Bad number of arguments for type alias, expected 0, given 1 [type-arg]
- src/prefect/server/utilities/database.py:409: error: Bad number of arguments for type alias, expected 0, given 1 [type-arg]
- src/prefect/server/utilities/database.py:410: error: Bad number of arguments for type alias, expected 0, given 1 [type-arg]
- src/prefect/server/utilities/database.py:415: error: Incompatible types in assignment (expression has type "tuple[Any, Any]", variable has type "tuple[Any]") [assignment]
- src/prefect/server/utilities/database.py:500: error: Bad number of arguments for type alias, expected 0, given 1 [type-arg]
- src/prefect/server/utilities/database.py:710: error: "greatest" expects no type arguments, but 1 given [type-arg]
- src/prefect/server/utilities/database.py:733: error: "least" expects no type arguments, but 1 given [type-arg]
- src/prefect/logging/filters.py:39: error: Setting? has no attribute "value" [attr-defined]
- src/prefect/client/utilities.py:18: error: Unexpected argument to "TypeVar()": "infer_variance" [misc]
- src/prefect/client/utilities.py:64: error: Variable "prefect.client.utilities.R" is not valid as a type [valid-type]
- src/prefect/client/utilities.py:64: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/client/utilities.py:65: error: Variable "prefect.client.utilities.R" is not valid as a type [valid-type]
- src/prefect/client/utilities.py:65: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/client/utilities.py:67: error: Variable "prefect.client.utilities.R" is not valid as a type [valid-type]
- src/prefect/client/utilities.py:67: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/client/utilities.py:75: error: Variable "prefect.client.utilities.R" is not valid as a type [valid-type]
- src/prefect/client/utilities.py:75: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/client/utilities.py:76: error: Variable "prefect.client.utilities.R" is not valid as a type [valid-type]
- src/prefect/client/utilities.py:76: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/client/utilities.py:86: error: Variable "prefect.client.utilities.R" is not valid as a type [valid-type]
- src/prefect/client/utilities.py:86: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/client/utilities.py:96: error: Incompatible types in assignment (expression has type "AbstractAsyncContextManager[R?, None]", variable has type "PrefectClient") [assignment]
- src/prefect/client/utilities.py:98: error: Incompatible types in assignment (expression has type "dict[str, object]", variable has type "P.kwargs") [assignment]
- src/prefect/_internal/_logging.py:24: error: Setting? has no attribute "value" [attr-defined]
- src/prefect/__init__.py:6: error: Module "prefect" does not explicitly export attribute "_build_info" [attr-defined]
- src/prefect/__init__.py:36: error: Name "__spec__" already defined (possibly by an import) [no-redef]
- src/prefect/utilities/schema_tools/validation.py:15: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/schema_tools/validation.py:106: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/schema_tools/validation.py:130: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/schema_tools/validation.py:157: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/schema_tools/validation.py:228: error: Redundant cast to "list[Any]" [redundant-cast]
- src/prefect/utilities/filesystem/__init__.py:14: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/filesystem/__init__.py:16: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/filesystem/__init__.py:17: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/filesystem/__init__.py:124: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/filesystem/__init__.py:125: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/filesystem/__init__.py:135: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/settings/models/server/services.py:66: error: Incompatible return value type (got "bool | set[str] | list[str] | None", expected "set[str] | bool | None") [return-value]
- src/prefect/settings/models/server/services.py:93: error: Incompatible types in assignment (expression has type "set[str] | bool | None", base class "ServicesBaseSetting" defined the type as "bool") [assignment]
- src/prefect/logging/loggers.py:170: error: Incompatible types in assignment (expression has type "Logger", variable has type "LoggerAdapter[Logger]") [assignment]
- src/prefect/logging/loggers.py:171: error: "LoggerAdapter[Logger]" has no attribute "disabled" [attr-defined]
- src/prefect/logging/loggers.py:354: error: Incompatible types in assignment (expression has type "EngineContext | TaskRunContext | None", variable has type "EngineContext") [assignment]
- src/prefect/client/orchestration/_flow_runs/client.py:13: error: Unexpected argument to "TypeVar()": "infer_variance" [misc]
- src/prefect/client/orchestration/_flow_runs/client.py:42: error: Variable "prefect.client.orchestration._flow_runs.client.R" is not valid as a type [valid-type]
- src/prefect/client/orchestration/_flow_runs/client.py:42: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/client/orchestration/_flow_runs/client.py:48: error: Variable "prefect.client.orchestration._flow_runs.client.R" is not valid as a type [valid-type]
- src/prefect/client/orchestration/_flow_runs/client.py:48: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/client/orchestration/_flow_runs/client.py:541: error: Variable "prefect.client.orchestration._flow_runs.client.R" is not valid as a type [valid-type]
- src/prefect/client/orchestration/_flow_runs/client.py:541: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/client/orchestration/_flow_runs/client.py:547: error: Variable "prefect.client.orchestration._flow_runs.client.R" is not valid as a type [valid-type]
- src/prefect/client/orchestration/_flow_runs/client.py:547: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/_internal/analytics/client.py:120: error: Item "None" of "Any | None" has no attribute "track" [union-attr]
- src/prefect/utilities/importtools.py:274: error: Missing return statement [return]
- src/prefect/utilities/templating/__init__.py:249: error: Redundant cast to "list[Any]" [redundant-cast]
- src/prefect/utilities/templating/__init__.py:377: error: Name "value" already defined on line 335 [no-redef]
- src/prefect/utilities/templating/__init__.py:383: error: Cannot determine type of "value" [has-type]
- src/prefect/telemetry/_metrics.py:43: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/telemetry/_metrics.py:43: error: "object" has no attribute "api" [attr-defined]
- src/prefect/telemetry/_metrics.py:43: note: Error code "attr-defined" not covered by "type: ignore" comment
- src/prefect/telemetry/_metrics.py:44: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/telemetry/_metrics.py:44: error: "object" has no attribute "connected_to_cloud" [attr-defined]
- src/prefect/telemetry/_metrics.py:44: note: Error code "attr-defined" not covered by "type: ignore" comment
- src/prefect/_internal/concurrency/cancellation.py:46: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/_internal/concurrency/cancellation.py:54: error: "__exit__" of "_RLock" does not return a value (it only ever returns None) [func-returns-value]
- src/prefect/_internal/concurrency/cancellation.py:70: error: Incompatible types in assignment (expression has type "BaseException", variable has type "None") [assignment]
- src/prefect/_internal/concurrency/cancellation.py:155: error: Missing return statement [return]
- src/prefect/_internal/concurrency/cancellation.py:161: error: Incompatible types in assignment (expression has type "float", variable has type "None") [assignment]
- src/prefect/_internal/concurrency/cancellation.py:267: error: "bool" is invalid as return type for "__exit__" that always returns False [exit-return]
- src/prefect/_internal/concurrency/cancellation.py:267: note: Use "typing.Literal[False]" as the return type or change it to "None"
- src/prefect/_internal/concurrency/cancellation.py:267: note: If return type of "__exit__" implies that it may return True, the context manager may swallow exceptions
- src/prefect/_internal/concurrency/cancellation.py:583: error: Incompatible types in assignment (expression has type "WatcherThreadCancelScope", variable has type "AlarmCancelScope") [assignment]
- src/prefect/utilities/pydantic.py:85: error: Incompatible types in assignment (expression has type "Callable[[Any], tuple[Any, ...]]", variable has type "Callable[[], str | tuple[Any, ...]]") [assignment]
- src/prefect/utilities/pydantic.py:154: error: "classmethod" used with a non-method [misc]
- src/prefect/utilities/pydantic.py:188: error: No overload variant matches argument type "type[M]" [call-overload]
- src/prefect/utilities/pydantic.py:188: note: Possible overload variants:
- src/prefect/utilities/pydantic.py:188: note: def __new__(type[type], object, /) -> type
- src/prefect/utilities/pydantic.py:188: note: def [_typeshed.Self] __new__(type[_typeshed.Self], str, tuple[type, ...], dict[str, Any], /, **kwds: Any) -> _typeshed.Self
- src/prefect/utilities/pydantic.py:190: error: No overload variant matches argument type "type[M]" [call-overload]
- src/prefect/utilities/pydantic.py:190: note: Possible overload variants:
- src/prefect/utilities/pydantic.py:190: note: def __new__(type[type], object, /) -> type
- src/prefect/utilities/pydantic.py:190: note: def [_typeshed.Self] __new__(type[_typeshed.Self], str, tuple[type, ...], dict[str, Any], /, **kwds: Any) -> _typeshed.Self
- src/prefect/utilities/pydantic.py:193: error: Incompatible types in assignment (expression has type "def __new__(cls: type[M], **kwargs: Any) -> M", variable has type overloaded function) [assignment]
- src/prefect/utilities/dockerutils.py:129: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/dockerutils.py:509: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/dockerutils.py:512: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/dockerutils.py:527: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/callables/__init__.py:16: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/callables/__init__.py:41: error: Unexpected argument to "TypeVar()": "infer_variance" [misc]
- src/prefect/utilities/callables/__init__.py:339: error: Variable "prefect.utilities.callables.R" is not valid as a type [valid-type]
- src/prefect/utilities/callables/__init__.py:339: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/callables/__init__.py:362: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/callables/__init__.py:373: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/utilities/callables/__init__.py:649: error: Incompatible types in assignment (expression has type "type[_empty]", variable has type "expr | None") [assignment]
- src/prefect/utilities/callables/__init__.py:651: error: Incompatible types in assignment (expression has type "type[_empty]", variable has type "expr | None") [assignment]
- src/prefect/utilities/callables/__init__.py:672: error: Incompatible types in assignment (expression has type "type[_empty]", variable has type "expr | None") [assignment]
- src/prefect/utilities/callables/__init__.py:674: error: Incompatible types in assignment (expression has type "type[_empty]", variable has type "expr | None") [assignment]
- src/prefect/utilities/callables/__init__.py:707: error: Incompatible types in assignment (expression has type "type[_empty]", variable has type "expr | None") [assignment]
- src/prefect/utilities/callables/__init__.py:709: error: Incompatible types in assignment (expression has type "type[_empty]", variable has type "expr | None") [assignment]
- src/prefect/utilities/callables/__init__.py:717: error: Incompatible types in assignment (expression has type "list[None]", variable has type "list[expr | None]") [assignment]
- src/prefect/utilities/callables/__init__.py:717: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
- src/prefect/utilities/callables/__init__.py:717: note: Consider using "Sequence" instead, which is covariant
- src/prefect/utilities/callables/__init__.py:719: error: Unsupported operand types for + ("list[None]" and "list[expr | None]") [operator]
- src/prefect/utilities/callables/__init__.py:754: error: Incompatible types in assignment (expression has type "type[_empty]", variable has type "expr | None") [assignment]
- src/prefect/utilities/callables/__init__.py:819: error: "allow_failure" expects no type arguments, but 1 given [type-arg]
- src/prefect/utilities/callables/__init__.py:819: error: "quote" expects no type arguments, but 1 given [type-arg]
- src/prefect/utilities/callables/__init__.py:824: error: Name "val" already defined on line 820 [no-redef]
- src/prefect/utilities/callables/__init__.py:827: error: Redundant cast to "unmapped" [redundant-cast]
- src/prefect/utilities/callables/__init__.py:827: error: "unmapped" expects no type arguments, but 1 given [type-arg]
- src/prefect/server/utilities/user_templates.py:36: error: Unused "type: ignore" comment [unused-ignore]
- src/prefect/runner/_process_manager.py:26: error: Name "ctypes.WinDLL" is not defined [name-defined]
- src/prefect/runner/_process_manager.py:29: error: Name "ctypes.WinDLL" is not defined [name-defined]
- src/prefect/runner/_process_manager.py:33: error: Module has no attribute "WinDLL" [attr-defined]
- src/prefect/_internal/schemas/validators.py:260: error: Item "None" of "tzinfo | None" has no attribute "name" [union-attr]
- src/prefect/_internal/schemas/validators.py:445: error: "_T" has no attribute "timezone" [attr-defined]
- src/prefect/_internal/schemas/validators.py:445: note: Error code "attr-defined" not covered by "type: ignore" comment
- src/prefect/_internal/schemas/validators.py:654: error: Setting? has no attribute "value" [attr-defined]
- src/prefect/_internal/schemas/validators.py:657: error: Setting? has no attribute "value" [attr-defined]
- src/prefect/_internal/concurrency/calls.py: error: Nested parameter specifications are not allowed [valid-type]
- src/prefect/_internal/concurrency/calls.py:36: error: Unexpected argument to "TypeVar()": "infer_variance" [misc]
- src/prefect/_internal/concurrency/calls.py:40: error: Variable "prefect._internal.concurrency.calls.T" is not valid as a type [valid-type]
- src/prefect/_internal/concurrency/calls.py:40: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/_internal/concurrency/calls.py:50: error: "Call" expects no type arguments, but 1 given [type-arg]
- src/prefect/_internal/concurrency/calls.py:59: error: "Call" expects no type arguments, but 1 given [type-arg]
- src/prefect/_internal/concurrency/calls.py:67: error: Variable "prefect._internal.concurrency.calls.T" is not valid as a type [valid-type]
- src/prefect/_internal/concurrency/calls.py:67: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/_internal/concurrency/calls.py:84: error: Incompatible types in assignment (expression has type "float | None", variable has type "None") [assignment]
- src/prefect/_internal/concurrency/calls.py:91: error: "None" has no attribute "add_cancel_callback" [attr-defined]
- src/prefect/_internal/concurrency/calls.py:92: error: Incompatible types in "yield" (actual type "None", expected type "AsyncCancelScope") [misc]
- src/prefect/_internal/concurrency/calls.py:158: error: Variable "prefect._internal.concurrency.calls.T" is not valid as a type [valid-type]
- src/prefect/_internal/concurrency/calls.py:158: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/_internal/concurrency/calls.py:160: error: Variable "prefect._internal.concurrency.calls.T" is not valid as a type [valid-type]
- src/prefect/_internal/concurrency/calls.py:160: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/_internal/concurrency/calls.py:197: error: Incompatible types in assignment (expression has type "None", variable has type "Future") [assignment]
- src/prefect/_internal/concurrency/calls.py:215: error: Argument 1 has incompatible type "Future"; expected "Self" [arg-type]
- src/prefect/_internal/concurrency/calls.py:226: error: Free type variable expected in Generic[...] [misc]
- src/prefect/_internal/concurrency/calls.py:231: error: "Future" expects no type arguments, but 1 given [type-arg]
- src/prefect/_internal/concurrency/calls.py:231: error: Variable "prefect._internal.concurrency.calls.T" is not valid as a type [valid-type]
- src/prefect/_internal/concurrency/calls.py:231: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/_internal/concurrency/calls.py:232: error: Variable "prefect._internal.concurrency.calls.T" is not valid as a type [valid-type]
- src/prefect/_internal/concurrency/calls.py:232: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/_internal/concurrency/calls.py:278: error: Nested parameter specifications are not allowed [valid-type]
- src/prefect/_internal/concurrency/calls.py:278: error: Variable "prefect._internal.concurrency.calls.T" is not valid as a type [valid-type]
- src/prefect/_internal/concurrency/calls.py:278: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/_internal/concurrency/calls.py:359: error: Variable "prefect._internal.concurrency.calls.T" is not valid as a type [valid-type]
- src/prefect/_internal/concurrency/calls.py:359: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/_internal/concurrency/calls.py:393: error: Missing return statement [return]
- src/prefect/_internal/concurrency/calls.py:393: error: Variable "prefect._internal.concurrency.calls.T" is not valid as a type [valid-type]
- src/prefect/_internal/concurrency/calls.py:393: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/_internal/concurrency/calls.py:435: error: Variable "prefect._internal.concurrency.calls.T" is not valid as a type [valid-type]
- src/prefect/_internal/concurrency/calls.py:435: note: See https://myp
... (truncated 2050 lines) ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR brings typeshed up-to-date for cachetools v7.0, effectively replacing #15357, #14585, and #13701.
Please note that
pyrightmay still give some warnings, and handlng ofttl/timerarguments is still not optimal, but as the maintainer ofcachetoolsIMHO this is a substantial improvement for the current stable version.