-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maxim Avanov
committed
Mar 8, 2023
1 parent
23045aa
commit 438aa35
Showing
9 changed files
with
95 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,12 @@ | |
CHANGELOG | ||
========= | ||
|
||
3.11.0.0 | ||
======== | ||
|
||
* Support for Python 3.11 | ||
|
||
|
||
3.9.1.9 | ||
======= | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
inflection>=0.4.0,<0.6.0 | ||
colander>=1.7.0,<1.9.0 | ||
pyrsistent>=0.18.1,<0.19 | ||
typing-inspect>=0.7.1,<0.8.0 | ||
typing-extensions>=4.2,<4.3 | ||
colander>=1.7.0,<2.1 | ||
pyrsistent>=0.19.3 | ||
typing-inspect>=0.7.1,<0.9 | ||
typing-extensions>=4.2,<4.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from typing import Type, get_type_hints, NamedTuple, Union, ForwardRef, Any, Generator | ||
|
||
NoneType = type(None) | ||
|
||
|
||
class AttrInfo(NamedTuple): | ||
name: str | ||
resolved_type: Type | ||
raw_type: Union[Type, ForwardRef] | ||
|
||
|
||
def get_type_attribute_info(typ: Type) -> Generator[AttrInfo, Any, None]: | ||
raw = getattr(typ, '__annotations__', {}) | ||
existing_only = lambda x: x[1] is not NoneType | ||
return (AttrInfo(name, t, raw.get(name, t)) for name, t in filter(existing_only, get_type_hints(typ).items())) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters