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

polymorfic #33

Merged
merged 12 commits into from
Jan 2, 2020
Prev Previous commit
Next Next commit
3.8 fix mypy
  • Loading branch information
Tishka17 committed Jan 2, 2020
commit 50ac01d9cba8d352408172ac1562f06b4b7d475b
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ factory.load(1, int) # prints: parsing done
* `Optional`
* `Any`, using this type no conversion is done during parsing. But serialization is based on real data type
* `Union`
* `Literal` types, including variant from `typing_exstensions`
* `dataclass`
* `Generic` dataclasses
* `datetime` and `UUID` can be converted using predefind schemas
Expand Down
2 changes: 1 addition & 1 deletion tests/test_literal.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from dataclass_factory import Factory

LITERALS = [CompatLiteral]
LITERALS: Any = [CompatLiteral]
if sys.version_info >= (3, 8):
from typing import Literal as PyLiteral

Expand Down