We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
include_extras
get_type_hints
1 parent 1c2cbcd commit 253b1ddCopy full SHA for 253b1dd
fastapi_utils/cbv.py
@@ -74,7 +74,7 @@ def _init_cbv(cls: Type[Any], instance: Any = None) -> None:
74
]
75
76
dependency_names: List[str] = []
77
- for name, hint in get_type_hints(cls).items():
+ for name, hint in get_type_hints(cls, include_extras=True).items():
78
if is_classvar(hint):
79
continue
80
parameter_kwargs = {"default": getattr(cls, name, Ellipsis)}
0 commit comments