Skip to content
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

TEST: TypeVar defaults #9

Draft
wants to merge 19 commits into
base: my-main
Choose a base branch
from
Draft

TEST: TypeVar defaults #9

wants to merge 19 commits into from

Conversation

cdce8p
Copy link
Owner

@cdce8p cdce8p commented Dec 30, 2022

No description provided.

@cdce8p cdce8p closed this Dec 30, 2022
@cdce8p cdce8p reopened this Dec 30, 2022
@github-actions

This comment has been minimized.

@cdce8p cdce8p force-pushed the TypeVar-defaults branch 2 times, most recently from a9b23ff to 6ac6aaf Compare December 31, 2022 07:39
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@cdce8p cdce8p force-pushed the TypeVar-defaults branch 2 times, most recently from 9b6b9b0 to 5a3efd9 Compare February 2, 2024 12:05
Copy link

github-actions bot commented Feb 2, 2024

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

psycopg (https://github.com/psycopg/psycopg)
+ tests/pool/test_pool_common_async.py:22: error: List item 0 has incompatible type "type[AsyncConnectionPool[Any]]"; expected "type[AsyncConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_common_async.py:22: error: List item 1 has incompatible type "type[AsyncNullConnectionPool[Any]]"; expected "type[AsyncConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_common.py:22: error: List item 0 has incompatible type "type[ConnectionPool[Any]]"; expected "type[ConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_common.py:22: error: List item 1 has incompatible type "type[NullConnectionPool[Any]]"; expected "type[ConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_null_async.py:66: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_null_async.py:98: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_null.py:67: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_null.py:99: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_async.py:68: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_async.py:103: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_async.py:184: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool_async.py:189: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool_async.py:195: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool.py:69: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool.py:102: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool.py:183: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool.py:188: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool.py:194: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/tag.py:31: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Category[Any]]"; expected "type[Category[Any]]"  [arg-type]
+ steam/tag.py:73: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Genre[Any]]"; expected "type[Genre[Any]]"  [arg-type]
+ steam/tag.py:96: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Tag[Any]]"; expected "type[Tag[Any]]"  [arg-type]
- steam/badge.py:129: error: Argument 1 to "inventory" of "PartialUser" has incompatible type "tuple[str, int]"; expected "App[str]"  [arg-type]
+ steam/badge.py:129: error: Argument 1 to "inventory" of "PartialUser" has incompatible type "tuple[str, int]"; expected "App[str | None]"  [arg-type]
+ steam/app.py:88: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[App[Any]]"; expected "type[App[Any]]"  [arg-type]
- steam/app.py:117: error: Incompatible return value type (got "NameT | str", expected "str")  [return-value]
+ steam/app.py:117: error: Incompatible return value type (got "NameT", expected "str")  [return-value]
- steam/app.py:696: error: Argument 2 to "AppStats" has incompatible type "PartialApp[NameT]"; expected "App[str]"  [arg-type]
- steam/app.py:710: error: Argument 2 to "AppAchievement" has incompatible type "PartialApp[NameT]"; expected "PartialApp[str]"  [arg-type]
- steam/app.py:724: error: Type argument "Self" of "Leaderboard" must be a subtype of "App[str]"  [type-var]
- steam/app.py:736: error: Value of type variable "AppT" of "Leaderboard" cannot be "Self"  [type-var]
- steam/app.py:749: error: Type argument "Self" of "Leaderboard" must be a subtype of "App[str]"  [type-var]
- steam/app.py:765: error: Value of type variable "AppT" of "Leaderboard" cannot be "Self"  [type-var]
- steam/app.py:775: error: Type argument "Self" of "Leaderboard" must be a subtype of "App[str]"  [type-var]
- steam/app.py:786: error: Value of type variable "AppT" of "Leaderboard" cannot be "Self"  [type-var]
- steam/app.py:832: error: Argument 1 to "fetch_review" of "PartialUser" has incompatible type "PartialApp[NameT]"; expected "App[str]"  [arg-type]
- steam/app.py:1169: error: Type argument "Self" of "CommunityItem" must be a subtype of "PartialApp[str]"  [type-var]
- steam/app.py:1181: error: Value of type variable "AppT" of "CommunityItem" cannot be "Self"  [type-var]
- steam/app.py:1230: error: Type argument "Self" of "RewardItem" must be a subtype of "PartialApp[str]"  [type-var]
- steam/app.py:1240: error: Value of type variable "AppT" of "RewardItem" cannot be "Self"  [type-var]
- steam/app.py:1271: error: Value of type variable "AppT" of "AppBadge" cannot be "Self"  [type-var]
- steam/app.py:1300: error: Type argument "Self" of "RewardItem" must be a subtype of "PartialApp[str]"  [type-var]
- steam/app.py:1305: error: Type argument "Self" of "AppBadge" must be a subtype of "PartialApp[str]"  [type-var]
- steam/app.py:1316: error: Value of type variable "AppT" of "AppBadge" cannot be "Self"  [type-var]
- steam/app.py:1374: error: Argument 1 to "temporarily_play" of "ConnectionState" has incompatible type "PartialApp[NameT]"; expected "App[str]"  [arg-type]
+ steam/trade.py:398: error: Incompatible types in assignment (expression has type "Sequence[object]", variable has type "Sequence[SendingAssetT]")  [assignment]
+ steam/trade.py:402: error: Incompatible types in assignment (expression has type "Sequence[object]", variable has type "Sequence[ReceivingAssetT]")  [assignment]
+ steam/package.py:43: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Package[Any]]"; expected "type[Package[Any]]"  [arg-type]
- steam/profile.py:152: error: Argument 1 to "inventory" of "PartialUser" has incompatible type "tuple[str, int]"; expected "App[str]"  [arg-type]
+ steam/profile.py:341: error: Unused "type: ignore" comment  [unused-ignore]
- steam/user.py:506: error: Argument "type" to "__init__" of "ID" has incompatible type "int"; expected "TypeT | None"  [arg-type]
- steam/event.py:277: error: Incompatible types in assignment (expression has type "App[str] | PartialApp[str | None] | None", variable has type "PartialApp[str | None] | None")  [assignment]
+ steam/event.py:277: error: Incompatible types in assignment (expression has type "App[str | None] | None", variable has type "PartialApp[str | None] | None")  [assignment]
+ steam/chat.py:384: error: Unused "type: ignore" comment  [unused-ignore]
- steam/message.py:74: error: Argument 1 to "__init__" of "Message" has incompatible type "Self"; expected "Message[UserT, ChannelT]"  [arg-type]
- steam/user_news.py:112: error: Argument 1 to "fetch_review" of "PartialUser" has incompatible type "PartialApp[str | None]"; expected "App[str]"  [arg-type]
+ steam/bundle.py:30: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Bundle[Any]]"; expected "type[Bundle[Any]]"  [arg-type]
- steam/ext/commands/commands.py:288: error: Incompatible types in assignment (expression has type "GroupMixin[Any] | Group[Any, [VarArg(Any), KwArg(Any)], Any] | None", variable has type "Self")  [assignment]
+ steam/ext/commands/commands.py:288: error: Incompatible types in assignment (expression has type "GroupMixin[Any | None] | Group[Any, [VarArg(Any), KwArg(Any)], Any] | None", variable has type "Self")  [assignment]
- steam/ext/commands/commands.py:714: error: Incompatible default for argument "cls" (default has type "type[Command[Any, Any, Any]]", argument has type "type[C]")  [assignment]
+ steam/ext/commands/commands.py:699: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]
- steam/ext/commands/commands.py:818: error: Incompatible default for argument "cls" (default has type "type[Command[Any, Any, Any]]", argument has type "type[C]")  [assignment]
+ steam/ext/commands/commands.py:804: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]
+ steam/ext/commands/commands.py:856: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]
- steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str], *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str | None], *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str | None], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/csgo/models.py:179: note:          def inventory(self, App[str], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note:          def inventory(self, App[str | None], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str | None], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/csgo/models.py:179: note:          def inventory(self, App[str], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note:          def inventory(self, App[str | None], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str | None], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/tf2/client.py:36: note:          def inventory(self, app: App[str], *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/tf2/client.py:36: note:          def inventory(self, app: App[str | None], *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/tf2/client.py:36: note:          def inventory(self, app: App[str], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/tf2/client.py:36: note:          def inventory(self, app: App[str | None], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/tf2/client.py:36: note:          def inventory(self, App[str], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/tf2/client.py:36: note:          def inventory(self, App[str | None], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/tf2/client.py:36: note:          def inventory(self, app: App[str], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]

... (truncated 5 lines) ...

hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
+ src/hydra_zen/typing/_builds_overloads.py:46: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [overload-overlap]
+ src/hydra_zen/typing/_builds_overloads.py:238: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ src/hydra_zen/typing/_builds_overloads.py:269: error: Overloaded function signatures 1 and 3 overlap with incompatible return types  [overload-overlap]
+ src/hydra_zen/typing/_builds_overloads.py:472: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ src/hydra_zen/typing/_builds_overloads.py:548: error: Overloaded function signatures 3 and 4 overlap with incompatible return types  [overload-overlap]
+ src/hydra_zen/typing/_builds_overloads.py:657: error: Overloaded function implementation cannot produce return type of signature 3  [misc]
+ src/hydra_zen/structured_configs/_implementations.py:1353: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [overload-overlap]

Copy link

github-actions bot commented Feb 2, 2024

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

psycopg (https://github.com/psycopg/psycopg)
+ tests/pool/test_pool_common_async.py:22: error: List item 0 has incompatible type "type[AsyncConnectionPool[Any]]"; expected "type[AsyncConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_common_async.py:22: error: List item 1 has incompatible type "type[AsyncNullConnectionPool[Any]]"; expected "type[AsyncConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_common.py:22: error: List item 0 has incompatible type "type[ConnectionPool[Any]]"; expected "type[ConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_common.py:22: error: List item 1 has incompatible type "type[NullConnectionPool[Any]]"; expected "type[ConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_null_async.py:66: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_null_async.py:98: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_null.py:67: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_null.py:99: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_async.py:68: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_async.py:103: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_async.py:184: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool_async.py:189: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool_async.py:195: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool.py:69: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool.py:102: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool.py:183: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool.py:188: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool.py:194: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/tag.py:31: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Category[Any]]"; expected "type[Category[Any]]"  [arg-type]
+ steam/tag.py:73: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Genre[Any]]"; expected "type[Genre[Any]]"  [arg-type]
+ steam/tag.py:96: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Tag[Any]]"; expected "type[Tag[Any]]"  [arg-type]
- steam/badge.py:129: error: Argument 1 to "inventory" of "PartialUser" has incompatible type "tuple[str, int]"; expected "App[str]"  [arg-type]
+ steam/badge.py:129: error: Argument 1 to "inventory" of "PartialUser" has incompatible type "tuple[str, int]"; expected "App[str | None]"  [arg-type]
+ steam/app.py:88: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[App[Any]]"; expected "type[App[Any]]"  [arg-type]
- steam/app.py:117: error: Incompatible return value type (got "NameT | str", expected "str")  [return-value]
+ steam/app.py:117: error: Incompatible return value type (got "NameT", expected "str")  [return-value]
- steam/app.py:696: error: Argument 2 to "AppStats" has incompatible type "PartialApp[NameT]"; expected "App[str]"  [arg-type]
- steam/app.py:710: error: Argument 2 to "AppAchievement" has incompatible type "PartialApp[NameT]"; expected "PartialApp[str]"  [arg-type]
- steam/app.py:724: error: Type argument "Self" of "Leaderboard" must be a subtype of "App[str]"  [type-var]
- steam/app.py:736: error: Value of type variable "AppT" of "Leaderboard" cannot be "Self"  [type-var]
- steam/app.py:749: error: Type argument "Self" of "Leaderboard" must be a subtype of "App[str]"  [type-var]
- steam/app.py:765: error: Value of type variable "AppT" of "Leaderboard" cannot be "Self"  [type-var]
- steam/app.py:775: error: Type argument "Self" of "Leaderboard" must be a subtype of "App[str]"  [type-var]
- steam/app.py:786: error: Value of type variable "AppT" of "Leaderboard" cannot be "Self"  [type-var]
- steam/app.py:832: error: Argument 1 to "fetch_review" of "PartialUser" has incompatible type "PartialApp[NameT]"; expected "App[str]"  [arg-type]
- steam/app.py:1169: error: Type argument "Self" of "CommunityItem" must be a subtype of "PartialApp[str]"  [type-var]
- steam/app.py:1181: error: Value of type variable "AppT" of "CommunityItem" cannot be "Self"  [type-var]
- steam/app.py:1230: error: Type argument "Self" of "RewardItem" must be a subtype of "PartialApp[str]"  [type-var]
- steam/app.py:1240: error: Value of type variable "AppT" of "RewardItem" cannot be "Self"  [type-var]
- steam/app.py:1271: error: Value of type variable "AppT" of "AppBadge" cannot be "Self"  [type-var]
- steam/app.py:1300: error: Type argument "Self" of "RewardItem" must be a subtype of "PartialApp[str]"  [type-var]
- steam/app.py:1305: error: Type argument "Self" of "AppBadge" must be a subtype of "PartialApp[str]"  [type-var]
- steam/app.py:1316: error: Value of type variable "AppT" of "AppBadge" cannot be "Self"  [type-var]
- steam/app.py:1374: error: Argument 1 to "temporarily_play" of "ConnectionState" has incompatible type "PartialApp[NameT]"; expected "App[str]"  [arg-type]
+ steam/trade.py:398: error: Incompatible types in assignment (expression has type "Sequence[object]", variable has type "Sequence[SendingAssetT]")  [assignment]
+ steam/trade.py:402: error: Incompatible types in assignment (expression has type "Sequence[object]", variable has type "Sequence[ReceivingAssetT]")  [assignment]
+ steam/package.py:43: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Package[Any]]"; expected "type[Package[Any]]"  [arg-type]
- steam/profile.py:152: error: Argument 1 to "inventory" of "PartialUser" has incompatible type "tuple[str, int]"; expected "App[str]"  [arg-type]
+ steam/profile.py:152: error: Argument 1 to "inventory" of "PartialUser" has incompatible type "tuple[str, int]"; expected "App[str | None]"  [arg-type]
- steam/user.py:506: error: Argument "type" to "__init__" of "ID" has incompatible type "int"; expected "TypeT | None"  [arg-type]
- steam/event.py:277: error: Incompatible types in assignment (expression has type "App[str] | PartialApp[str | None] | None", variable has type "PartialApp[str | None] | None")  [assignment]
+ steam/event.py:277: error: Incompatible types in assignment (expression has type "App[str | None] | None", variable has type "PartialApp[str | None] | None")  [assignment]
+ steam/chat.py:384: error: Unused "type: ignore" comment  [unused-ignore]
- steam/message.py:74: error: Argument 1 to "__init__" of "Message" has incompatible type "Self"; expected "Message[UserT, ChannelT]"  [arg-type]
- steam/user_news.py:112: error: Argument 1 to "fetch_review" of "PartialUser" has incompatible type "PartialApp[str | None]"; expected "App[str]"  [arg-type]
+ steam/bundle.py:30: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Bundle[Any]]"; expected "type[Bundle[Any]]"  [arg-type]
- steam/ext/commands/commands.py:288: error: Incompatible types in assignment (expression has type "GroupMixin[Any] | Group[Any, [VarArg(Any), KwArg(Any)], Any] | None", variable has type "Self")  [assignment]
+ steam/ext/commands/commands.py:288: error: Incompatible types in assignment (expression has type "GroupMixin[Any | None] | Group[Any, [VarArg(Any), KwArg(Any)], Any] | None", variable has type "Self")  [assignment]
- steam/ext/commands/commands.py:714: error: Incompatible default for argument "cls" (default has type "type[Command[Any, Any, Any]]", argument has type "type[C]")  [assignment]
+ steam/ext/commands/commands.py:699: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]
- steam/ext/commands/commands.py:818: error: Incompatible default for argument "cls" (default has type "type[Command[Any, Any, Any]]", argument has type "type[C]")  [assignment]
+ steam/ext/commands/commands.py:804: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]
+ steam/ext/commands/commands.py:856: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]
- steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str], *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str | None], *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str | None], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/csgo/models.py:179: note:          def inventory(self, App[str], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note:          def inventory(self, App[str | None], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str | None], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/csgo/models.py:179: note:          def inventory(self, App[str], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note:          def inventory(self, App[str | None], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note:          def inventory(self, app: App[str | None], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/tf2/client.py:36: note:          def inventory(self, app: App[str], *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/tf2/client.py:36: note:          def inventory(self, app: App[str | None], *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/tf2/client.py:36: note:          def inventory(self, app: App[str], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/tf2/client.py:36: note:          def inventory(self, app: App[str | None], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/tf2/client.py:36: note:          def inventory(self, App[str], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/tf2/client.py:36: note:          def inventory(self, App[str | None], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/tf2/client.py:36: note:          def inventory(self, app: App[str], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]

... (truncated 5 lines) ...

hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
+ src/hydra_zen/typing/_builds_overloads.py:46: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [overload-overlap]
+ src/hydra_zen/typing/_builds_overloads.py:238: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ src/hydra_zen/typing/_builds_overloads.py:269: error: Overloaded function signatures 1 and 3 overlap with incompatible return types  [overload-overlap]
+ src/hydra_zen/typing/_builds_overloads.py:472: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ src/hydra_zen/typing/_builds_overloads.py:548: error: Overloaded function signatures 3 and 4 overlap with incompatible return types  [overload-overlap]
+ src/hydra_zen/typing/_builds_overloads.py:657: error: Overloaded function implementation cannot produce return type of signature 3  [misc]
+ src/hydra_zen/structured_configs/_implementations.py:1353: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [overload-overlap]

Copy link

github-actions bot commented Feb 2, 2024

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

psycopg (https://github.com/psycopg/psycopg)
+ tests/pool/test_pool_common_async.py:22: error: List item 0 has incompatible type "type[AsyncConnectionPool[Any]]"; expected "type[AsyncConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_common_async.py:22: error: List item 1 has incompatible type "type[AsyncNullConnectionPool[Any]]"; expected "type[AsyncConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_common.py:22: error: List item 0 has incompatible type "type[ConnectionPool[Any]]"; expected "type[ConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_common.py:22: error: List item 1 has incompatible type "type[NullConnectionPool[Any]]"; expected "type[ConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_null_async.py:66: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_null_async.py:98: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_null.py:67: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_null.py:99: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_async.py:68: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_async.py:103: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_async.py:184: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool_async.py:189: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool_async.py:195: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool.py:69: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool.py:102: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool.py:183: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool.py:188: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool.py:194: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/tag.py:31: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Category[Any]]"; expected "type[Category[Any]]"  [arg-type]
+ steam/tag.py:73: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Genre[Any]]"; expected "type[Genre[Any]]"  [arg-type]
+ steam/tag.py:96: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Tag[Any]]"; expected "type[Tag[Any]]"  [arg-type]
+ steam/app.py:88: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[App[Any]]"; expected "type[App[Any]]"  [arg-type]
- steam/app.py:117: error: Incompatible return value type (got "NameT | str", expected "str")  [return-value]
+ steam/app.py:117: error: Incompatible return value type (got "NameT", expected "str")  [return-value]
+ steam/trade.py:398: error: Incompatible types in assignment (expression has type "Sequence[object]", variable has type "Sequence[SendingAssetT]")  [assignment]
+ steam/trade.py:402: error: Incompatible types in assignment (expression has type "Sequence[object]", variable has type "Sequence[ReceivingAssetT]")  [assignment]
+ steam/package.py:43: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Package[Any]]"; expected "type[Package[Any]]"  [arg-type]
- steam/user.py:506: error: Argument "type" to "__init__" of "ID" has incompatible type "int"; expected "TypeT | None"  [arg-type]
+ steam/chat.py:384: error: Unused "type: ignore" comment  [unused-ignore]
- steam/message.py:74: error: Argument 1 to "__init__" of "Message" has incompatible type "Self"; expected "Message[UserT, ChannelT]"  [arg-type]
+ steam/bundle.py:30: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Bundle[Any]]"; expected "type[Bundle[Any]]"  [arg-type]
- steam/ext/commands/commands.py:714: error: Incompatible default for argument "cls" (default has type "type[Command[Any, Any, Any]]", argument has type "type[C]")  [assignment]
+ steam/ext/commands/commands.py:699: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]
- steam/ext/commands/commands.py:818: error: Incompatible default for argument "cls" (default has type "type[Command[Any, Any, Any]]", argument has type "type[C]")  [assignment]
+ steam/ext/commands/commands.py:804: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]
+ steam/ext/commands/commands.py:856: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]

hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
+ src/hydra_zen/typing/_builds_overloads.py:46: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [overload-overlap]
+ src/hydra_zen/typing/_builds_overloads.py:238: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ src/hydra_zen/typing/_builds_overloads.py:269: error: Overloaded function signatures 1 and 3 overlap with incompatible return types  [overload-overlap]
+ src/hydra_zen/typing/_builds_overloads.py:472: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ src/hydra_zen/typing/_builds_overloads.py:548: error: Overloaded function signatures 3 and 4 overlap with incompatible return types  [overload-overlap]
+ src/hydra_zen/typing/_builds_overloads.py:657: error: Overloaded function implementation cannot produce return type of signature 3  [misc]
+ src/hydra_zen/structured_configs/_implementations.py:1353: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [overload-overlap]

Copy link

github-actions bot commented Feb 3, 2024

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

psycopg (https://github.com/psycopg/psycopg)
+ tests/pool/test_pool_common_async.py:22: error: List item 0 has incompatible type "type[AsyncConnectionPool[Any]]"; expected "type[AsyncConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_common_async.py:22: error: List item 1 has incompatible type "type[AsyncNullConnectionPool[Any]]"; expected "type[AsyncConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_common.py:22: error: List item 0 has incompatible type "type[ConnectionPool[Any]]"; expected "type[ConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_common.py:22: error: List item 1 has incompatible type "type[NullConnectionPool[Any]]"; expected "type[ConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_null_async.py:66: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_null_async.py:98: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_null.py:67: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_null.py:99: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_async.py:68: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_async.py:103: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_async.py:184: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool_async.py:189: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool_async.py:195: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool.py:69: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool.py:102: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool.py:183: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool.py:188: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool.py:194: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/tag.py:31: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Category[Any]]"; expected "type[Category[Any]]"  [arg-type]
+ steam/tag.py:73: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Genre[Any]]"; expected "type[Genre[Any]]"  [arg-type]
+ steam/tag.py:96: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Tag[Any]]"; expected "type[Tag[Any]]"  [arg-type]
+ steam/app.py:88: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[App[Any]]"; expected "type[App[Any]]"  [arg-type]
- steam/app.py:117: error: Incompatible return value type (got "NameT | str", expected "str")  [return-value]
+ steam/app.py:117: error: Incompatible return value type (got "NameT", expected "str")  [return-value]
+ steam/trade.py:398: error: Incompatible types in assignment (expression has type "Sequence[object]", variable has type "Sequence[SendingAssetT]")  [assignment]
+ steam/trade.py:402: error: Incompatible types in assignment (expression has type "Sequence[object]", variable has type "Sequence[ReceivingAssetT]")  [assignment]
+ steam/package.py:43: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Package[Any]]"; expected "type[Package[Any]]"  [arg-type]
- steam/user.py:506: error: Argument "type" to "__init__" of "ID" has incompatible type "int"; expected "TypeT | None"  [arg-type]
+ steam/chat.py:384: error: Unused "type: ignore" comment  [unused-ignore]
- steam/message.py:74: error: Argument 1 to "__init__" of "Message" has incompatible type "Self"; expected "Message[UserT, ChannelT]"  [arg-type]
+ steam/bundle.py:30: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Bundle[Any]]"; expected "type[Bundle[Any]]"  [arg-type]
- steam/ext/commands/commands.py:714: error: Incompatible default for argument "cls" (default has type "type[Command[Any, Any, Any]]", argument has type "type[C]")  [assignment]
+ steam/ext/commands/commands.py:699: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]
- steam/ext/commands/commands.py:818: error: Incompatible default for argument "cls" (default has type "type[Command[Any, Any, Any]]", argument has type "type[C]")  [assignment]
+ steam/ext/commands/commands.py:804: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]
+ steam/ext/commands/commands.py:856: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]

hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
+ src/hydra_zen/typing/_builds_overloads.py:46: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [overload-overlap]
+ src/hydra_zen/typing/_builds_overloads.py:238: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ src/hydra_zen/typing/_builds_overloads.py:269: error: Overloaded function signatures 1 and 3 overlap with incompatible return types  [overload-overlap]
+ src/hydra_zen/typing/_builds_overloads.py:472: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ src/hydra_zen/typing/_builds_overloads.py:548: error: Overloaded function signatures 3 and 4 overlap with incompatible return types  [overload-overlap]
+ src/hydra_zen/typing/_builds_overloads.py:657: error: Overloaded function implementation cannot produce return type of signature 3  [misc]
+ src/hydra_zen/structured_configs/_implementations.py:1353: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [overload-overlap]

Copy link

github-actions bot commented Feb 3, 2024

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

psycopg (https://github.com/psycopg/psycopg)
+ tests/pool/test_pool_common_async.py:22: error: List item 0 has incompatible type "type[AsyncConnectionPool[Any]]"; expected "type[AsyncConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_common_async.py:22: error: List item 1 has incompatible type "type[AsyncNullConnectionPool[Any]]"; expected "type[AsyncConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_common.py:22: error: List item 0 has incompatible type "type[ConnectionPool[Any]]"; expected "type[ConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_common.py:22: error: List item 1 has incompatible type "type[NullConnectionPool[Any]]"; expected "type[ConnectionPool[Any]]"  [list-item]
+ tests/pool/test_pool_null_async.py:66: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_null_async.py:98: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_null.py:67: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_null.py:99: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_async.py:68: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_async.py:103: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool_async.py:184: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool_async.py:189: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool_async.py:195: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool.py:69: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool.py:102: error: Non-overlapping equality check (left operand type: "tuple[Any, ...]", right operand type: "dict[str, int]")  [comparison-overlap]
+ tests/pool/test_pool.py:183: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool.py:188: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]
+ tests/pool/test_pool.py:194: error: Value of type "tuple[Any, ...] | None" is not indexable  [index]

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/tag.py:31: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Category[Any]]"; expected "type[Category[Any]]"  [arg-type]
+ steam/tag.py:73: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Genre[Any]]"; expected "type[Genre[Any]]"  [arg-type]
+ steam/tag.py:96: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Tag[Any]]"; expected "type[Tag[Any]]"  [arg-type]
+ steam/app.py:88: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[App[Any]]"; expected "type[App[Any]]"  [arg-type]
- steam/app.py:117: error: Incompatible return value type (got "NameT | str", expected "str")  [return-value]
+ steam/app.py:117: error: Incompatible return value type (got "NameT", expected "str")  [return-value]
+ steam/trade.py:398: error: Incompatible types in assignment (expression has type "Sequence[object]", variable has type "Sequence[SendingAssetT]")  [assignment]
+ steam/trade.py:402: error: Incompatible types in assignment (expression has type "Sequence[object]", variable has type "Sequence[ReceivingAssetT]")  [assignment]
+ steam/package.py:43: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Package[Any]]"; expected "type[Package[Any]]"  [arg-type]
- steam/user.py:506: error: Argument "type" to "__init__" of "ID" has incompatible type "int"; expected "TypeT | None"  [arg-type]
+ steam/chat.py:384: error: Unused "type: ignore" comment  [unused-ignore]
- steam/message.py:74: error: Argument 1 to "__init__" of "Message" has incompatible type "Self"; expected "Message[UserT, ChannelT]"  [arg-type]
+ steam/bundle.py:30: error: Argument 1 to "impl_eq_via_id" has incompatible type "type[Bundle[Any]]"; expected "type[Bundle[Any]]"  [arg-type]
- steam/ext/commands/commands.py:714: error: Incompatible default for argument "cls" (default has type "type[Command[Any, Any, Any]]", argument has type "type[C]")  [assignment]
+ steam/ext/commands/commands.py:699: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]
- steam/ext/commands/commands.py:818: error: Incompatible default for argument "cls" (default has type "type[Command[Any, Any, Any]]", argument has type "type[C]")  [assignment]
+ steam/ext/commands/commands.py:804: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]
+ steam/ext/commands/commands.py:856: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]

hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
+ src/hydra_zen/typing/_builds_overloads.py:46: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [overload-overlap]
+ src/hydra_zen/typing/_builds_overloads.py:238: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ src/hydra_zen/typing/_builds_overloads.py:269: error: Overloaded function signatures 1 and 3 overlap with incompatible return types  [overload-overlap]
+ src/hydra_zen/typing/_builds_overloads.py:472: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ src/hydra_zen/typing/_builds_overloads.py:548: error: Overloaded function signatures 3 and 4 overlap with incompatible return types  [overload-overlap]
+ src/hydra_zen/typing/_builds_overloads.py:657: error: Overloaded function implementation cannot produce return type of signature 3  [misc]
+ src/hydra_zen/structured_configs/_implementations.py:1353: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [overload-overlap]

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.

2 participants