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

Completed another round of simplification and improvement for the mem… #6295

Closed
wants to merge 1 commit into from

Conversation

erictraut
Copy link
Collaborator

…ber access evaluation code paths.

Copy link
Contributor

github-actions bot commented Nov 2, 2023

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

spack (https://github.com/spack/spack)
+   /tmp/mypy_primer/projects/spack/lib/spack/spack/ci.py:2249:22 - error: Cannot access member "dag_hash" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/spack/lib/spack/spack/ci.py:2246:22 - error: Cannot access member "name" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/spack/lib/spack/spack/ci.py:2247:22 - error: Cannot access member "version" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/spack/lib/spack/spack/ci.py:2248:22 - error: Cannot access member "compiler" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/spack/lib/spack/spack/ci.py:2250:22 - error: Cannot access member "architecture" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/spack/lib/spack/spack/ci.py:2254:89 - error: Cannot access member "name" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/spack/lib/spack/spack/fetch_strategy.py:858:32 - error: Cannot assign member "srcdir" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/spack/lib/spack/spack/fetch_strategy.py:907:32 - error: Cannot assign member "srcdir" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/spack/lib/spack/spack/solver/asp.py:427:68 - error: Cannot access member "symbolic_atoms" for type "Never" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/spack/lib/spack/spack/solver/asp.py:427:55 - error: "Never" is not iterable (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/spack/lib/spack/spack/solver/asp.py:454:32 - error: Cannot access member "solve" for type "Never" (reportGeneralTypeIssues)
- 3850 errors, 48 warnings, 0 informations 
+ 3859 errors, 48 warnings, 0 informations 

steam.py (https://github.com/Gobot1234/steam.py)
-   /tmp/mypy_primer/projects/steam.py/poetry_build.py:46:23 - error: Type of "split" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/poetry_build.py:47:9 - error: Type of "split" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:37:19 - error: Type of "get" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:38:66 - error: Type of "get" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:38:42 - error: Type of "upper" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/chat.py:354:32 - error: Type of "chat_name" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/chat.py:354:32 - error: Type of "partition" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/chat.py:358:37 - error: Type of "time_joined" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/chat.py:360:25 - error: Type of "sort_order" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/errors.py:78:24 - error: Type of "replace" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/errors.py:78:24 - error: Type of "strip" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/manifest.py:1007:28 - error: Type of "get" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/manifest.py:1007:28 - error: Type of "get" is partially unknown
-     Type of "get" is "Overload[(k: Literal['name']) -> (str | None), (k: Literal['name'], default: str | __TDefault@Depot) -> (str | __TDefault@Depot), (k: Literal['config']) -> Unknown, (k: Literal['config'], default: Any) -> Unknown, (k: Literal['manifests']) -> (Unknown | None), (k: Literal['manifests'], default: Unknown | __TDefault@Depot) -> (Unknown | __TDefault@Depot), (k: Literal['encryptedmanifests']) -> (Unknown | None), (k: Literal['encryptedmanifests'], default: Unknown | __TDefault@Depot) -> (Unknown | __TDefault@Depot), (k: Literal['branches']) -> (Unknown | None), (k: Literal['branches'], default: Unknown | __TDefault@Depot) -> (Unknown | __TDefault@Depot), (k: Literal['maxsize']) -> (str | None), (k: Literal['maxsize'], default: str | __TDefault@Depot) -> (str | __TDefault@Depot), (k: Literal['depotfromapp']) -> (str | None), (k: Literal['depotfromapp'], default: str | __TDefault@Depot) -> (str | __TDefault@Depot), (k: Literal['sharedinstall']) -> (bool | None), (k: Literal['sharedinstall'], default: bool | __TDefault@Depot) -> (bool | __TDefault@Depot), (k: Literal['system_defined']) -> (bool | None), (k: Literal['system_defined'], default: bool | __TDefault@Depot) -> (bool | __TDefault@Depot), (k: str) -> (Any | None), (k: str, default: Any | __TDefault@Depot) -> (Any | __TDefault@Depot)]" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/manifest.py:1023:44 - error: Type of "items" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/steam.py/steam/state.py:3036:9 - error: Type of "parsers" is partially unknown
+     Type of "parsers" is "dict[EMsg, ParserCallback[Unknown, ProtobufMessage | Message]]" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/steam.py/steam/state.py:3038:9 - error: Type of "parsers" is partially unknown
+     Type of "parsers" is "dict[EMsg, ParserCallback[Unknown, ProtobufMessage | Message]]" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/steam.py/steam/utils.py:702:46 - error: Type of "islice" is partially unknown
+     Type of "islice" is "type[islice[Unknown]]" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/steam.py/steam/ext/commands/commands.py:247:42 - error: Type of "Greedy" is partially unknown
+     Type of "Greedy" is "type[Greedy[Unknown]]" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/steam.py/steam/ext/commands/commands.py:251:22 - error: Cannot access member "__func__" for type "Never" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/steam.py/steam/ext/commands/commands.py:561:24 - error: Type of "__class__" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/steam.py/steam/ext/commands/commands.py:251:13 - error: Type of "__func__" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/steam.py/steam/ext/commands/commands.py:415:53 - error: Type of "Greedy" is partially unknown
+     Type of "Greedy" is "type[Greedy[Unknown]]" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/ext/commands/commands.py:561:24 - error: Type of "__name__" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/steam.py/steam/ext/csgo/state.py:192:66 - error: Cannot access member "id" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/steam.py/steam/ext/csgo/state.py:193:47 - error: Cannot access member "id" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/steam.py/steam/ext/csgo/state.py:194:59 - error: Cannot access member "id" for type "Never" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/steam.py/steam/ext/tf2/state.py:78:17 - error: Type of "localisation" is partially unknown
+   /tmp/mypy_primer/projects/steam.py/steam/ext/tf2/state.py:78:17 - error: Type of "localisation" is unknown (reportUnknownMemberType)
-     Type of "localisation" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/ext/tf2/state.py:79:47 - error: Type of "localisation" is partially unknown
+   /tmp/mypy_primer/projects/steam.py/steam/ext/tf2/state.py:79:47 - error: Type of "localisation" is unknown (reportUnknownMemberType)
-     Type of "localisation" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/ext/tf2/state.py:82:31 - error: Type of "localisation" is partially unknown
+   /tmp/mypy_primer/projects/steam.py/steam/ext/tf2/state.py:82:31 - error: Type of "localisation" is unknown (reportUnknownMemberType)
-     Type of "localisation" is "Unknown | None" (reportUnknownMemberType)
- 7935 errors, 23 warnings, 0 informations 
+ 7929 errors, 23 warnings, 0 informations 

operator (https://github.com/canonical/operator)
-   /tmp/mypy_primer/projects/operator/ops/pebble.py:2522:9 - error: Type of "connect" is unknown (reportUnknownMemberType)
- 62 errors, 0 warnings, 0 informations 
+ 61 errors, 0 warnings, 0 informations 

pydantic (https://github.com/samuelcolvin/pydantic)
+   /tmp/mypy_primer/projects/pydantic/pydantic/color.py:89:32 - error: Cannot access member "_rgba" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/color.py:90:27 - error: Cannot access member "_original" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/fields.py:356:41 - error: Cannot access member "type" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/_internal/_generate_schema.py:1007:97 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pydantic/pydantic/_internal/_generate_schema.py:1544:97 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
- 57 errors, 0 warnings, 0 informations 
+ 62 errors, 0 warnings, 0 informations 

AutoSplit (https://github.com/Toufool/AutoSplit)
+   /tmp/mypy_primer/projects/AutoSplit/src/AutoSplitImage.py:64:26 - error: Cannot access member "settings_dict" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/AutoSplit/src/AutoSplitImage.py:62:9 - error: Type of "default_value" is partially unknown
+     Type of "default_value" is "AutoSplit | int | Unknown" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/AutoSplit/src/AutoSplitImage.py:145:9 - error: Type of "comparison_method" is partially unknown
+     Type of "comparison_method" is "AutoSplit | int | Unknown" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/AutoSplit/src/AutoSplitImage.py:148:13 - error: Argument type is partially unknown
+     Argument corresponds to parameter "__key" in function "get"
+     Argument type is "AutoSplit | int | Unknown" (reportUnknownArgumentType)
+   /tmp/mypy_primer/projects/AutoSplit/src/AutoSplitImage.py:57:26 - error: Cannot access member "settings_dict" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/AutoSplit/src/AutoSplitImage.py:55:9 - error: Type of "default_value" is partially unknown
+     Type of "default_value" is "AutoSplit | int | Unknown" (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/AutoSplit/src/AutoSplitImage.py:58:16 - error: Return type, "AutoSplit | int | Unknown | float", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/AutoSplit/src/AutoSplitImage.py:53:9 - error: Return type, "AutoSplit | int | Unknown | float", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/AutoSplit/src/AutoSplitImage.py:65:16 - error: Return type, "AutoSplit | int | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/AutoSplit/src/AutoSplitImage.py:60:9 - error: Return type, "AutoSplit | int | Unknown", is partially unknown (reportUnknownParameterType)
- 508 errors, 30 warnings, 7 informations 
+ 518 errors, 30 warnings, 7 informations 

Tanjun (https://github.com/FasterSpeeding/Tanjun)
-   /tmp/mypy_primer/projects/Tanjun/examples/injection.py:33:48 - warning: Type of "guild_id" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/examples/injection.py:33:48 - warning: Type of "guild_id" is unknown (reportUnknownMemberType)
-     Type of "guild_id" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/examples/message_commands.py:25:25 - warning: Type of "shards" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/examples/message_commands.py:25:25 - warning: Type of "shards" is unknown (reportUnknownMemberType)
-     Type of "shards" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/examples/run_gateway.py:25:70 - warning: Type of "guild_id" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/examples/run_gateway.py:25:70 - warning: Type of "guild_id" is unknown (reportUnknownMemberType)
-     Type of "guild_id" is "Unknown | None" (reportUnknownMemberType)
-     Type of "snowflake_converter" is "((str) -> Unknown) | None" (reportUnknownMemberType)
+     Type of "snowflake_converter" is "(str) -> Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:465:82 - warning: Type of "guild_id" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:465:82 - warning: Type of "guild_id" is unknown (reportUnknownMemberType)
-     Type of "guild_id" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:470:25 - warning: Type of "member" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:470:25 - warning: Type of "member" is unknown (reportUnknownMemberType)
-     Type of "member" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:473:21 - warning: Type of "member" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:473:21 - warning: Type of "member" is unknown (reportUnknownMemberType)
-     Type of "member" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:476:69 - warning: Type of "member" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:476:69 - warning: Type of "member" is unknown (reportUnknownMemberType)
-     Type of "member" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:554:39 - warning: Type of "cache" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:554:39 - warning: Type of "cache" is unknown (reportUnknownMemberType)
-     Type of "cache" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:554:60 - warning: Type of "guild_id" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:554:60 - warning: Type of "guild_id" is unknown (reportUnknownMemberType)
-     Type of "guild_id" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:558:56 - warning: Type of "guild_id" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:558:56 - warning: Type of "guild_id" is unknown (reportUnknownMemberType)
-     Type of "guild_id" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:559:60 - warning: Type of "guild_id" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/checks.py:559:60 - warning: Type of "guild_id" is unknown (reportUnknownMemberType)
-     Type of "guild_id" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:1484:34 - warning: Type of "name" is unknown (reportUnknownMemberType)
-     Type of "get" is "Overload[(__key: str, /) -> (Unknown | None), (__key: str, /, default: Unknown | _T@get) -> (Unknown | _T@get)]" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:1498:30 - warning: Type of "get" is partially unknown
-     Type of "get" is "Overload[(__key: str, /) -> (Unknown | None), (__key: str, __default: Unknown, /) -> Unknown, (__key: str, __default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:1498:30 - warning: Type of "get" is partially unknown
-     Type of "get" is "Overload[(__key: str, /) -> (Unknown | None), (__key: str, /, default: Unknown | _T@get) -> (Unknown | _T@get)]" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:1507:45 - warning: Type of "get" is partially unknown
-     Type of "get" is "Overload[(__key: str, /) -> (Unknown | None), (__key: str, __default: Unknown, /) -> Unknown, (__key: str, __default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:1507:45 - warning: Type of "get" is partially unknown
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:1502:30 - warning: Type of "get" is partially unknown
-     Type of "get" is "Overload[(__key: str, /) -> (Unknown | None), (__key: str, /, default: Unknown | _T@get) -> (Unknown | _T@get)]" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:1502:30 - warning: Type of "get" is partially unknown
-     Type of "get" is "Overload[(__key: str, /) -> (Unknown | None), (__key: str, __default: Unknown, /) -> Unknown, (__key: str, __default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:1498:43 - warning: Type of "name" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:1502:46 - warning: Type of "name" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:1507:61 - warning: Type of "name" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2106:17 - warning: Type of "_events" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2106:17 - warning: Type of "_events" is unknown (reportUnknownMemberType)
-     Type of "_events" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2123:13 - warning: Type of "_events" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2123:13 - warning: Type of "_events" is unknown (reportUnknownMemberType)
-     Type of "_events" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2343:34 - warning: Type of "_events" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2343:34 - warning: Type of "_events" is unknown (reportUnknownMemberType)
-     Type of "_events" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2345:30 - warning: Type of "_events" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2345:30 - warning: Type of "_events" is unknown (reportUnknownMemberType)
-     Type of "_events" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2349:38 - warning: Type of "_events" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2349:38 - warning: Type of "_events" is unknown (reportUnknownMemberType)
-     Type of "_events" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2352:38 - warning: Type of "_server" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2352:38 - warning: Type of "_server" is unknown (reportUnknownMemberType)
-     Type of "_server" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2354:17 - warning: Type of "_server" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2354:17 - warning: Type of "_server" is unknown (reportUnknownMemberType)
-     Type of "_server" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2387:24 - warning: Type of "_cache" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2387:24 - warning: Type of "_cache" is unknown (reportUnknownMemberType)
-     Type of "_cache" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2390:30 - warning: Type of "get" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2405:17 - warning: Type of "_server" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2405:17 - warning: Type of "_server" is unknown (reportUnknownMemberType)
-     Type of "_server" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2408:17 - warning: Type of "_server" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2408:17 - warning: Type of "_server" is unknown (reportUnknownMemberType)
-     Type of "_server" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2411:17 - warning: Type of "_events" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2411:17 - warning: Type of "_events" is unknown (reportUnknownMemberType)
-     Type of "_events" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2415:17 - warning: Type of "_events" is partially unknown
+   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2415:17 - warning: Type of "_events" is unknown (reportUnknownMemberType)
-     Type of "_events" is "Unknown | None" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2418:17 - warning: Type of "_events" is partially unknown

... (truncated 1718 lines) ...

pyinstrument (https://github.com/joerick/pyinstrument)
+   /tmp/mypy_primer/projects/pyinstrument/pyinstrument/magic/magic.py:101:30 - error: Cannot access member "stop" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pyinstrument/pyinstrument/magic/magic.py:100:50 - error: Cannot access member "is_running" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pyinstrument/test/test_cmdline_main.py:52:35 - error: Cannot access member "time" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pyinstrument/test/test_cmdline_main.py:76:35 - error: Cannot access member "processor_options" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pyinstrument/test/test_cmdline_main.py:100:35 - error: Cannot access member "processor_options" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pyinstrument/test/test_profiler.py:333:34 - error: Cannot access member "duration" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pyinstrument/test/test_profiler.py:346:34 - error: Cannot access member "duration" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/pyinstrument/test/test_threading.py:44:29 - error: Cannot access member "args" for type "Never" (reportGeneralTypeIssues)
- 31 errors, 5 warnings, 0 informations 
+ 39 errors, 5 warnings, 0 informations 

discord.py (https://github.com/Rapptz/discord.py)
+ /tmp/mypy_primer/projects/discord.py/discord/channel.py
+   /tmp/mypy_primer/projects/discord.py/discord/channel.py:656:74 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/channel.py:2096:91 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/client.py:612:75 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/client.py:925:83 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/client.py:2939:78 - error: Cannot access member "__name__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/client.py:2963:78 - error: Cannot access member "__name__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/client.py:2994:70 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/discord.py/discord/colour.py
+   /tmp/mypy_primer/projects/discord.py/discord/colour.py:122:71 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/discord.py/discord/components.py
+   /tmp/mypy_primer/projects/discord.py/discord/components.py:400:89 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/components.py:555:80 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/discord.py/discord/embeds.py
+   /tmp/mypy_primer/projects/discord.py/discord/embeds.py:323:89 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/embeds.py:340:82 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/discord.py/discord/guild.py
+   /tmp/mypy_primer/projects/discord.py/discord/guild.py:1231:79 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/guild.py:1748:101 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/guild.py:1764:94 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/guild.py:2058:100 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/guild.py:2068:106 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/guild.py:2079:104 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/guild.py:2156:85 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/guild.py:2573:73 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/guild.py:2672:73 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/http.py:276:51 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/discord.py/discord/member.py
+   /tmp/mypy_primer/projects/discord.py/discord/member.py:1010:98 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/discord.py/discord/message.py
+   /tmp/mypy_primer/projects/discord.py/discord/message.py:128:81 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/discord.py/discord/permissions.py
+   /tmp/mypy_primer/projects/discord.py/discord/permissions.py:140:77 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/permissions.py:156:84 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/permissions.py:163:84 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/permissions.py:860:74 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/discord.py/discord/player.py
+   /tmp/mypy_primer/projects/discord.py/discord/player.py:573:92 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/player.py:662:66 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/discord.py/discord/voice_client.py
+   /tmp/mypy_primer/projects/discord.py/discord/voice_client.py:480:73 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/voice_client.py:530:63 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/discord.py/discord/app_commands/commands.py
+   /tmp/mypy_primer/projects/discord.py/discord/app_commands/commands.py:1821:70 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/discord.py/discord/app_commands/tree.py
+   /tmp/mypy_primer/projects/discord.py/discord/app_commands/tree.py:347:82 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/app_commands/tree.py:1005:90 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/discord.py/discord/ext/commands/bot.py
+   /tmp/mypy_primer/projects/discord.py/discord/ext/commands/bot.py:193:82 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/ext/commands/bot.py:1317:102 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/ext/commands/bot.py:1325:64 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/ext/commands/cog.py:515:76 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/discord.py/discord/ext/commands/cog.py:520:33 - error: Cannot access member "__func__" for type "Never" (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/discord.py/discord/ui/button.py
+   /tmp/mypy_primer/projects/discord.py/discord/ui/button.py:109:75 - error: Cannot access member "__class__" for type "Never" (reportGeneralTypeIssues)

... (truncated 62 lines) ...```

@erictraut erictraut closed this Nov 2, 2023
@erictraut erictraut deleted the memberAccessSimplification branch November 2, 2023 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant