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.
1 parent f2db7a1 commit aa25396Copy full SHA for aa25396
1 file changed
src/fastapi_cli/discover.py
@@ -145,8 +145,6 @@ def get_app_name(
145
146
def check_factory(fn: Callable[[], Any]) -> bool:
147
"""Checks whether the return-type of a factory function is FastAPI"""
148
- # if not callable(fn):
149
- # return False
150
type_hints = get_type_hints(fn)
151
return_type = type_hints.get("return")
152
return return_type is not None and issubclass(return_type, FastAPI)
0 commit comments