-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
type hints #2654
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
base: master
Are you sure you want to change the base?
type hints #2654
Conversation
191ff70
to
f46fc01
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great effort @ElLorans, thank you 🫶.
Just saying, WDYT about uv workspaces? Do you think it would work without a new config file 🤔? |
I think uv workspaces solve a different problem. Here, we would need to access each example's folder and run mypy from there (which should be feasible and slightly better than what I opted for) |
f46fc01
to
b12cb33
Compare
Partially addresses #2440
Way too many
type: ignore
still required, due to highly dynamic dependencies and complex codebase.examples/
had to be modified fromkebab-case
tosnake_case
due to mypy requirements.A simple
files = ["flask_admin", "examples"]
cannot be used because examples are self contained and use relative imports which do not work from the parent folder.The only solution I could find was to add a new step in the tox typing matrix.
I used a new config file to allow differentiating vs the rest of the repo. Another possibility would be to dump the second config file and explicitate the different options, which right now are:
Any feedback on the toml config is welcome.