Add Python 3.10 to GitHub Actions test matrix (#280)

Co-authored-by: James Hilton-Balfe <50501825+Gobot1234@users.noreply.github.com>
This commit is contained in:
Kalan
2021-12-29 15:10:34 -08:00
committed by GitHub
parent d77f44ebb7
commit 573c7292a6
4 changed files with 632 additions and 653 deletions

View File

@@ -846,7 +846,7 @@ class Message(ABC):
@classmethod
def _type_hints(cls) -> Dict[str, Type]:
module = sys.modules[cls.__module__]
return get_type_hints(cls, vars(module))
return get_type_hints(cls, module.__dict__, {})
@classmethod
def _cls_for(cls, field: dataclasses.Field, index: int = 0) -> Type: