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

Bump deps #380

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Bump deps #380

wants to merge 4 commits into from

Conversation

winged
Copy link
Contributor

@winged winged commented Nov 22, 2024

No description provided.

This makes things installable a bit better
@rhizoome
Copy link

I gave my 50cent via chat. The essence of it is: please make sure mypy never ignores wsgidav because it is used to detect if upstream makes incompatible changes to parent classes. So it would be good to avoid ignore_missing_imports.

@rhizoome
Copy link

rhizoome commented Nov 23, 2024

I asked gpt if requesting wsgidav to add py.typed is the correct approach. Since wsgidav is actually fully typed. This would allow to remove mymy_fix.py.

https://typing.readthedocs.io/en/latest/spec/distributing.html#type-information-in-libraries
https://typing.readthedocs.io/en/latest/guides/libraries.html#providing-type-annotations

Above is the current way to make a lib typed.

Note regarding the `ignore`d super() call: mypy thinks that the
`super()` call in `ManabiS3Provider.__init__()` goes to the direct base
class `ManabiProvider` and is thus missing the required `root_folder`
parameter, but this ain't so: This calls `DAVProvider.__init__()` which
doesn't take that param.

Then we add a bit of typing sugar and make mypy shut up about missing
type information from 3rd party imports.

A few smaller issues that mypy finds in CI but not locally are addressed
as well.
Introduce a full-blown Ruff config (mostly stolen from Timed) that
can replace the full black+isort+flake8(and plugins) suite that was
used before.

The changes here should not be functional or impact the type system
at all (mypy is still there and watches over us)
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