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

Mypy type compliance #6

Closed
charlesriver456 opened this issue Jul 23, 2023 · 2 comments · Fixed by #9
Closed

Mypy type compliance #6

charlesriver456 opened this issue Jul 23, 2023 · 2 comments · Fixed by #9

Comments

@charlesriver456
Copy link

Currently when using this package (for example the InPlace class), when linting with mypy a missing library stubs or py.typed marker error is raised. Would you consider adding stub files to make this package mypy compatible?

To reproduce, create a small file using inplace:

import in_place

with in_place.InPlace('example.txt') as example_file:
    for line in example_file:
        example_file.write(line)

Run mypy file_name.py.

@jwodder jwodder mentioned this issue Oct 11, 2023
9 tasks
@jwodder
Copy link
Owner

jwodder commented Oct 12, 2023

in_place v1.0.0 is now out with type annotations.

@charlesriver456
Copy link
Author

Thank you!

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 a pull request may close this issue.

2 participants