forked from python/mypy
-
Notifications
You must be signed in to change notification settings - Fork 0
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
cdce8p
wants to merge
19
commits into
my-main
Choose a base branch
from
TypeVar-defaults
base: my-main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains 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
This comment has been minimized.
This comment has been minimized.
a9b23ff
to
6ac6aaf
Compare
This comment has been minimized.
This comment has been minimized.
39ac61a
to
3f6736d
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
168f803
to
efa0b52
Compare
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.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
8c742b8
to
00cecff
Compare
This comment has been minimized.
This comment has been minimized.
00cecff
to
84bede2
Compare
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.
812450f
to
df5e159
Compare
This comment has been minimized.
This comment has been minimized.
df5e159
to
a65d870
Compare
9b6b9b0
to
5a3efd9
Compare
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]
|
5a3efd9
to
bb5147a
Compare
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]
|
bb5147a
to
f5c0860
Compare
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]
|
f5c0860
to
2be354b
Compare
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]
|
Doesn't work for ParamSpec and TypeVarTuple yet
2be354b
to
dd331ef
Compare
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
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.
No description provided.