Fixes for type check errors exposed by pyright #6
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: greg/quoracle#6
Loading…
Reference in a new issue
No description provided.
Delete branch "typing_fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Use SupportsLessThan to indicate that TypeVar T should be
comparable.
Wow, this is great! I've been targeting Python 3.6, and I think the Protocol stuff is a newer feature? Could we split out the Python 3.6 compatible stuff from the non Python 3.6 compatible stuff? I'd love to merge as much of this as possible. Or maybe, we should just require a newer Python version? I'm not sure, what do you think?
Protocols are python3.8, created in 2017, accepted in 2019.
https://www.python.org/dev/peps/pep-0544/
I believe backports are available via:
https://pypi.org/project/typing-extensions/
My general preference is to avoid python2, support python releases from 2-4 years ago. python3.6 was released Dec 2016.
Alternatively, you can target the python versions in the "long term supported" largest/popular linux distributions: ubuntu 18.04 (3.6) and 20.04 (3.8) as of today.
Got it. I updated to Python 3.8 and merged this in! Thanks again for the pull request. I really appreciate you checking out the repo and improving it :)
Fixes #4.