Skip to content

Feature: Compatibility with regular Python typing #2

@jaens

Description

@jaens

Allow using regular Python type annotations instead of the hug.types.* ones.

Should distinguish types from converters for safety:

>>> o = Optional[int]; (inspect.isroutine(o), inspect.isclass(o))
(False, False)
>>> inspect.getmodule(o)
<module 'typing'>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions