Skip to content

Fix tests, fix/ignore typing#631

Merged
pawamoy merged 2 commits intomainfrom
typing-test-fixes
Nov 12, 2023
Merged

Fix tests, fix/ignore typing#631
pawamoy merged 2 commits intomainfrom
typing-test-fixes

Conversation

@pawamoy
Copy link
Copy Markdown
Member

@pawamoy pawamoy commented Nov 12, 2023

No description provided.

@pawamoy pawamoy changed the base branch from main to master November 12, 2023 00:57
@pawamoy pawamoy changed the base branch from master to main November 12, 2023 00:57
@oprypin
Copy link
Copy Markdown
Member

oprypin commented Nov 12, 2023

Oof, I caused these complications with types 🥲

Each of those ignored places could be better written with a cast, but on the other hand casts kinda suck because they are a runtime operation and don't work with if TYPE_CHECKING

@pawamoy
Copy link
Copy Markdown
Member Author

pawamoy commented Nov 12, 2023

No worries, CI was failing for other reasons so we both missed the tests failure. Also yeah, I really dislike using cast. I used it once here because it was easy enough. Maybe I should just remove it and add a type ignore comment for consistency.

@oprypin
Copy link
Copy Markdown
Member

oprypin commented Nov 12, 2023

No I mean I made the change to type annotations to be more correct but maybe they should've stayed less correct 😂

https://github.com/python/typeshed/pull/10963/files#diff-fdd5d1aae42754416614f2980c7ce6aeacb412d8614b5923858bf517a627f9f0

@pawamoy
Copy link
Copy Markdown
Member Author

pawamoy commented Nov 12, 2023

Oh OK, I thought you were speaking about the PR that modernized the tests to use MkDocsConfig.

More correct is good!

@pawamoy pawamoy merged commit b3edf89 into main Nov 12, 2023
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