-
Notifications
You must be signed in to change notification settings - Fork 932
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
Replace typing-extensions Literal with the type of the Literal #677
Conversation
@pietermarsman sorry for the mess. This PR looks way more complex than I anticipated. CI issues aside, is there a reason we can't just add typing-extensions to our runtime dependencies in |
…e own environment. Improves isolation. Dependencies of one package won't influence the next. This should fail for the current setup with typing-extensions.
fb9b83e
to
35221fb
Compare
See #678 for what I mean. |
None has the same true value as False, and therefore it does not matter.
Yep, I understand. Not sure yet. I like to keep dependencies minimal but this one seems ok. Let's discuss in gitter. I wanted to improve the cicd in any case such that it will raise errors in the future. |
Agreed on the CI improvements. As for the dependency -- no big deal either way. There's only one non-trivial use of Literal in some questionable code in pdf2txt, and I hope to send you a bigger PR that cleans it up anyway. (Hint: #657 fixes a related open issue there.) |
For the actual fix to psparser and pdf2txt, I prefer e.g. |
@0xabu I'm not going to include the typing-extensions for now. The Don't hesitate to add it in the future in another PR, if you have additional use cases for it. I just think that having one usage of it is not enough. |
Pull request
Fixes #676
open_filename
contextmanager__exit__
method from False to None.How Has This Been Tested?
Made the cicd fail when changing tox.ini. Then fixed it by removing the typing-extensions.
Checklist
works
version
is not necessary
verified that this is not necessary
CHANGELOG.md