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

Implement 3.5, 3.6, 3.7, 3.8, 3.9, and 3.10 support; black; GitHub Actions; upgrade deps #81

Open
wants to merge 16 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift click to select a range
41c7917
* Bring in changes from master branch, i.e., blacken, remove unused i…
SamuelMarks Oct 25, 2020
e527fc0
[.github/workflows/main.yml] Install test deps; [enforce/parsers.py] …
SamuelMarks Oct 25, 2020
b80c342
[.editorconfig] Init; [requirements_*.txt] Bump dependencies; [enforc…
SamuelMarks Oct 26, 2020
a91d029
[tests/protocol_test.py] Decouple test to avoid SyntaxError; [enforce…
SamuelMarks Oct 26, 2020
349e6f8
[enforce/nodes.py] Add support for `Literal` type
SamuelMarks Oct 27, 2020
748f7b0
[*.py] use `hasattr` to throw less exceptions
SamuelMarks Oct 28, 2020
312a03d
[{enforcers,decorators}.py,tests/test_enforcers.py] Enforcers are no …
SamuelMarks Oct 29, 2020
451ef62
[test_*.py] Replace pytest with unittest; [test_validators.py] Implem…
SamuelMarks Nov 2, 2020
7a731f6
[tests/test_protocol.py] Fixed TODO; [tests/test_types.py] Add missin…
SamuelMarks Nov 3, 2020
0a75368
[tests/test_{decorators,protocol}.py] Get more tests passing on 3.9; …
SamuelMarks Nov 3, 2020
3a5c680
[{nodes,tests/test_exception_messages}.py] Improve string concatenation
SamuelMarks Nov 4, 2020
32c75d8
[*.py] Improve string concatenation
SamuelMarks Nov 4, 2020
c86383a
[test/{test_exceptions,test_exception_messages}.py] Improve string co…
SamuelMarks Nov 4, 2020
1a7a3fc
[*.py] Blacken with new version
SamuelMarks Dec 20, 2021
53a4193
[.github/workflows/main.yml] Python 3.10 support; [README.md] 3.10; […
SamuelMarks Dec 20, 2021
8ca1f93
[parsers.py] `python_version_tuple() < ("3", "6")` => `sys.version_in…
SamuelMarks Dec 31, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[parsers.py] python_version_tuple() < ("3", "6") => `sys.version_in…
…fo < (3, 6)`
  • Loading branch information
SamuelMarks committed Dec 31, 2021
commit 8ca1f93cd082d016affd0001b400b6ea2920c4fd
2 changes: 1 addition & 1 deletion enforce/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 270,7 @@ def _fail_on_empty_protocol(node, hint, validator, parsers):
complex: _parse_complex,
bytes: _parse_bytes,
}
if python_version_tuple() < ("3", "6"):
if sys.version_info < (3, 6):
TYPE_PARSERS.update(
{
typing.TupleMeta: _parse_tuple,
Expand Down