Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: issubclass() arg 1 must be a class #37

Open
ischaojie opened this issue Dec 16, 2022 · 0 comments
Open

TypeError: issubclass() arg 1 must be a class #37

ischaojie opened this issue Dec 16, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ischaojie
Copy link
Owner

File "/usr/local/lib/python3.10/site-packages/flask_lan/openapi.py", line 159, in make_schemas
        if not view_func:
            return {}
        sig = signature(view_func)
        for _, param in sig.parameters.items():
            _type = param.annotation
            if issubclass(_type, BaseModel):
                schemas[_type.__name__] = Schema(**_type.schema())
 

@ischaojie ischaojie added the bug Something isn't working label Dec 16, 2022
@ischaojie ischaojie self-assigned this Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant