Skip to content

squashed #14041 #2

New issue

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

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

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

squashed #14041 #2

wants to merge 1 commit into from

Conversation

ikonst
Copy link
Owner

@ikonst ikonst commented Nov 14, 2022

No description provided.

@github-actions
Copy link

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

Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/dependencies/data.py:87: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/dependencies/data.py:87: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/dependencies/data.py:93: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/dependencies/data.py:93: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:228: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:228: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:310: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:310: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:921: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:921: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:925: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:925: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:929: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:929: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:1350: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:1350: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:1692: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:1692: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:1789: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:1789: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2054: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2054: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2058: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2058: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2127: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2127: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2178: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2178: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2226: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2226: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2274: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2274: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2407: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2407: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2411: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2411: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2415: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2415: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2425: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2425: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2440: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2440: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2455: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2455: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2475: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2475: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2603: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2603: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2658: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2658: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2673: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2673: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2779: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2779: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2794: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2794: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2835: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2835: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2839: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2839: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2843: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2843: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2925: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2925: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2940: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2940: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2961: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2961: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3001: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3001: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3016: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3016: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3150: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3150: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3167: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3167: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3182: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3182: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3226: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3226: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3241: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3241: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3292: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3292: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3307: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3307: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3358: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3358: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3375: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3375: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3424: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3424: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases

... (truncated 470 lines) ...

discord.py (https://github.com/Rapptz/discord.py)
+ discord/enums.py:100: error: Self type cannot be used in a metaclass  [misc]
- discord/enums.py:100: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/enums.py:100: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:56: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:56: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:122: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:122: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:123: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:125: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:125: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:126: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:128: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:128: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:129: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:131: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:131: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:132: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:135: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:135: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:136: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:139: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:139: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:140: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:143: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:143: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1522: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:1522: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1523: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"  [call-overload]
- discord/flags.py:1523: note: Possible overload variants:
- discord/flags.py:1523: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1523: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1607: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:1607: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1609: error: "Type[Self?]" has no attribute "VALID_FLAGS"  [attr-defined]
- discord/flags.py:1611: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"  [call-overload]
- discord/flags.py:1611: note: Possible overload variants:
- discord/flags.py:1611: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1611: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1616: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:1616: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1618: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"  [call-overload]
- discord/flags.py:1618: note: Possible overload variants:
- discord/flags.py:1618: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1618: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/permissions.py:170: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:170: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:176: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:176: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:185: error: Self? has no attribute "view_channel"  [attr-defined]
- discord/permissions.py:186: error: Self? has no attribute "read_message_history"  [attr-defined]
- discord/permissions.py:187: error: Self? has no attribute "value"  [attr-defined]
- discord/permissions.py:190: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:190: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:192: error: Self? has no attribute "read_messages"  [attr-defined]
- discord/permissions.py:193: error: Self? has no attribute "send_tts_messages"  [attr-defined]
- discord/permissions.py:194: error: Self? has no attribute "manage_messages"  [attr-defined]
- discord/permissions.py:195: error: Self? has no attribute "create_private_threads"  [attr-defined]
- discord/permissions.py:196: error: Self? has no attribute "create_public_threads"  [attr-defined]
- discord/permissions.py:197: error: Self? has no attribute "manage_threads"  [attr-defined]
- discord/permissions.py:198: error: Self? has no attribute "send_messages_in_threads"  [attr-defined]
- discord/permissions.py:202: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:202: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:228: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:228: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:241: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:241: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:250: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:250: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:265: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:265: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:271: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:271: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:280: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:280: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:296: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:296: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:317: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:317: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:798: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:798: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ discord/colour.py:195: error: Incompatible return value type (got "Colour", expected "Self")  [return-value]
+ discord/colour.py:201: error: Incompatible return value type (got "Colour", expected "Self")  [return-value]
+ discord/colour.py:202: error: Incompatible return value type (got "Colour", expected "Self")  [return-value]
+ discord/colour.py:206: error: Incompatible return value type (got "Colour", expected "Self")  [return-value]
- discord/colour.py:162: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:162: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:167: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:167: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:173: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:173: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:211: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:211: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:216: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]

... (truncated 472 lines) ...

prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/exceptions.py:157: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/exceptions.py:157: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/exceptions.py:174: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/exceptions.py:174: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/exceptions.py:271: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/exceptions.py:271: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/exceptions.py:289: error: Cannot instantiate type "Type[Self?]"  [misc]
- src/prefect/client/base.py:128: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/client/base.py:128: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/client/base.py:162: error: Self? has no attribute "status_code"  [attr-defined]
- src/prefect/client/base.py:169: error: Self? has no attribute "headers"  [attr-defined]
- src/prefect/client/base.py:182: error: Self? has no attribute "raise_for_status"  [attr-defined]
- src/prefect/docker.py:218: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/docker.py:218: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ src/prefect/utilities/pydantic.py:155: error: Self type is only allowed in annotations within class definition  [misc]
- src/prefect/utilities/pydantic.py:155: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/utilities/pydantic.py:155: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/pydantic.py:161: error: No overload variant matches argument type "Type[Self?]"  [call-overload]
+ src/prefect/utilities/pydantic.py:161: error: No overload variant matches argument type "Type[Any]"  [call-overload]
- src/prefect/utilities/pydantic.py:163: error: No overload variant matches argument type "Type[Self?]"  [call-overload]
+ src/prefect/utilities/pydantic.py:163: error: No overload variant matches argument type "Type[Any]"  [call-overload]
- src/prefect/utilities/pydantic.py:166: error: Incompatible types in assignment (expression has type "Callable[[Type[Self?], KwArg(Any)], Self?]", variable has type overloaded function)  [assignment]
+ src/prefect/utilities/pydantic.py:166: error: Incompatible types in assignment (expression has type "Callable[[Type[Any], KwArg(Any)], Any]", variable has type overloaded function)  [assignment]
- src/prefect/software/pip.py:25: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/software/pip.py:25: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/pip.py:34: error: "Type[Self?]" has no attribute "validate"  [attr-defined]
- src/prefect/software/python.py:26: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/software/python.py:26: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/python.py:37: error: Cannot instantiate type "Type[Self?]"  [misc]
- src/prefect/software/python.py:41: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/software/python.py:41: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/conda.py:118: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/software/conda.py:118: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/conda.py:133: error: Cannot instantiate type "Type[Self?]"  [misc]
- src/prefect/software/conda.py:141: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/software/conda.py:141: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/conda.py:178: error: Cannot instantiate type "Type[Self?]"  [misc]
- src/prefect/blocks/core.py:567: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/blocks/core.py:567: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/core.py:815: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/blocks/core.py:815: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/core.py:823: error: Unsupported argument 2 for "super"  [misc]
- src/prefect/blocks/core.py:834: error: Unsupported argument 2 for "super"  [misc]
+ src/prefect/infrastructure/base.py:110: error: Argument 1 to "update" of "MutableMapping" has incompatible type "Dict[str, Optional[str]]"; expected "SupportsKeysAndGetItem[str, str]"  [arg-type]
- src/prefect/infrastructure/base.py:90: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/infrastructure/base.py:90: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/infrastructure/base.py:94: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/infrastructure/base.py:94: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/infrastructure/base.py:99: error: Self? has no attribute "_base_deployment_labels"  [attr-defined]
- src/prefect/infrastructure/base.py:104: error: Self? has no attribute "_base_flow_labels"  [attr-defined]
- src/prefect/infrastructure/base.py:108: error: Self? has no attribute "copy"  [attr-defined]
- src/prefect/infrastructure/base.py:110: error: Self? has no attribute "_base_flow_run_environment"  [attr-defined]
- src/prefect/infrastructure/base.py:110: error: Self? has no attribute "env"  [attr-defined]
- src/prefect/infrastructure/base.py:112: error: Self? has no attribute "_base_flow_run_labels"  [attr-defined]
- src/prefect/infrastructure/base.py:115: error: Self? has no attribute "labels"  [attr-defined]
- src/prefect/infrastructure/base.py:117: error: Self? has no attribute "name"  [attr-defined]
- src/prefect/infrastructure/base.py:118: error: Self? has no attribute "command"  [attr-defined]
- src/prefect/infrastructure/base.py:118: error: Self? has no attribute "_base_flow_run_command"  [attr-defined]
- src/prefect/blocks/kubernetes.py:49: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/blocks/kubernetes.py:49: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/kubernetes.py:83: error: Cannot instantiate type "Type[Self?]"  [misc]
- src/prefect/results.py:128: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/results.py:128: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/results.py:129: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/results.py:129: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/results.py:138: error: "Type[Self?]" has no attribute "from_settings"  [attr-defined]
- src/prefect/results.py:161: error: "Type[Self?]" has no attribute "default_factory"  [attr-defined]
- src/prefect/results.py:182: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/results.py:182: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/results.py:183: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/results.py:183: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/results.py:211: error: "Type[Self?]" has no attribute "from_settings"  [attr-defined]
- src/prefect/results.py:222: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/results.py:222: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/results.py:228: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- src/prefect/results.py:228: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/results.py:229: error: "Type[Self?]" has no attribute "resolve_storage_block"  [attr-defined]
- src/prefect/results.py:232: error: "Type[Self?]" has no attribute "resolve_serializer"  [attr-defined]
- src/prefect/results.py:234: error: Cannot instantiate type "Type[Self?]"  [misc]
- src/prefect/packaging/docker.py:121: error: Self? has no attribute "add_line"  [attr-defined]
- src/prefect/packaging/docker.py:125: error: Self? has no attribute "write_text"  [attr-defined]
- src/prefect/packaging/docker.py:128: error: Self? has no attribute "build"  [attr-defined]

comtypes (https://github.com/enthought/comtypes)
- comtypes/__init__.py:831: error: Too many arguments  [call-arg]
- comtypes/__init__.py:842: error: Attribute function "__com_AddRef" with type "Callable[[], int]" does not accept self argument  [misc]
- comtypes/__init__.py:847: error: Attribute function "__com_Release" with type "Callable[[], int]" does not accept self argument  [misc]
- comtypes/server/register.py:65: error: Cannot assign to a method  [assignment]

... (truncated 7 lines) ...```

@ikonst ikonst closed this Nov 15, 2022
@ikonst ikonst deleted the 2022-11-14-pr#14041-test branch November 15, 2022 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant