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

Fix tests, fix/ignore typing #631

Merged
merged 2 commits into from
Nov 12, 2023
Merged

Fix tests, fix/ignore typing #631

merged 2 commits into from
Nov 12, 2023

Conversation

pawamoy
Copy link
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
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
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
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
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
33 of 35 checks passed
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.

None yet

2 participants