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: Narrow index variable typing #23

Closed
wants to merge 1 commit into from
Closed

Conversation

cdce8p
Copy link
Owner

@cdce8p cdce8p commented Oct 22, 2024

No description provided.

This comment has been minimized.

@cdce8p cdce8p force-pushed the improve-index-typing branch from 9f13989 to c2fbdd3 Compare October 22, 2024 15:18
Copy link

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

pydantic (https://github.com/pydantic/pydantic)
+ pydantic/v1/networks.py:345: error: Unused "type: ignore" comment  [unused-ignore]

scrapy (https://github.com/scrapy/scrapy)
+ scrapy/downloadermiddlewares/cookies.py:141: error: Unused "type: ignore" comment  [unused-ignore]
+ scrapy/downloadermiddlewares/cookies.py:142: error: Unused "type: ignore" comment  [unused-ignore]
+ scrapy/downloadermiddlewares/cookies.py:145: error: Unused "type: ignore" comment  [unused-ignore]
+ scrapy/downloadermiddlewares/cookies.py:145: error: "str" has no attribute "decode"; maybe "encode"?  [attr-defined]
+ scrapy/downloadermiddlewares/cookies.py:145: note: Error code "attr-defined" not covered by "type: ignore" comment
+ scrapy/downloadermiddlewares/cookies.py:152: error: Unused "type: ignore" comment  [unused-ignore]
+ scrapy/downloadermiddlewares/cookies.py:152: error: "str" has no attribute "decode"; maybe "encode"?  [attr-defined]
+ scrapy/downloadermiddlewares/cookies.py:152: note: Error code "attr-defined" not covered by "type: ignore" comment

discord.py (https://github.com/Rapptz/discord.py)
- discord/message.py:2267: error: TypedDict key must be a string literal; expected one of ("channel_id", "guild_id", "id", "author", "content", ...)  [literal-required]

core (https://github.com/home-assistant/core)
+ homeassistant/components/image_processing/__init__.py:226: error: Unused "type: ignore" comment  [unused-ignore]
+ homeassistant/components/energy/data.py:334: error: Unused "type: ignore" comment  [unused-ignore]

schemathesis (https://github.com/schemathesis/schemathesis)
+ src/schemathesis/cli/__init__.py:260: error: Unused "type: ignore" comment  [unused-ignore]

@cdce8p cdce8p closed this Oct 22, 2024
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