From 36af7d71546bbef8a5fc3c2c53bf478d00cc2d24 Mon Sep 17 00:00:00 2001 From: Eric Froemling Date: Fri, 1 Oct 2021 11:41:02 -0500 Subject: [PATCH] tweaked DataclassFieldLookup typing --- tools/efro/dataclassio/_pathcapture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/efro/dataclassio/_pathcapture.py b/tools/efro/dataclassio/_pathcapture.py index 52e5ca0f..0b17a2bf 100644 --- a/tools/efro/dataclassio/_pathcapture.py +++ b/tools/efro/dataclassio/_pathcapture.py @@ -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: