tweaked DataclassFieldLookup typing

This commit is contained in:
Eric Froemling 2021-10-01 11:41:02 -05:00
parent 8fde389001
commit 36af7d7154
No known key found for this signature in database
GPG Key ID: 89C93F0F8D6D5A98

View File

@ -55,7 +55,7 @@ class _PathCapture:
class DataclassFieldLookup(Generic[T]):
"""Get info about nested dataclass fields in type-safe way."""
def __init__(self, cls: T) -> None:
def __init__(self, cls: Type[T]) -> None:
self.cls = cls
def path(self, callback: Callable[[T], Any]) -> str: