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

Missing types available to mypy? (as far as I can tell) #155

Closed
alexjbuck opened this issue Jan 9, 2024 · 4 comments
Closed

Missing types available to mypy? (as far as I can tell) #155

alexjbuck opened this issue Jan 9, 2024 · 4 comments

Comments

@alexjbuck
Copy link

alexjbuck commented Jan 9, 2024

I'm getting lots of Return type becomes "Any" due to an unfollowed import errors from MyPy related to using the S3Path class.

I'm not sure why, my MyPy configuration should be following imports to get type annotation (it does for all my other dependencies).

here is an MVP that throws the mypy error in my setup:

def make_path(uri: str) -> S3Path:
    return S3Path.from_uri(uri)

Return type becomes "Any" due to an unfollowed import mypy[no-any-unimported]

@alexjbuck
Copy link
Author

If this is something wrong with my local config, unrelated to s3path, apologies. Its not an issue I see with other libraries though.

@rggjan
Copy link

rggjan commented May 28, 2024

@rggjan
Copy link

rggjan commented May 28, 2024

mypy will ignore all typing information when that file is missing... cc @liormizr

@liormizr
Copy link
Owner

@rggjan I opened a dedicated issue for your request #176
Thanks

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

No branches or pull requests

3 participants