mirror of
https://github.com/kennethreitz/neon-api-python.git
synced 2026-06-05 14:50:16 +00:00
Update return type annotation to use Pydantic dataclass
This commit is contained in:
@@ -19,7 +19,7 @@ ENABLE_PYDANTIC = True
|
||||
|
||||
|
||||
def returns_model(model, is_array=False):
|
||||
"""Decorator that returns a Pydantic model.
|
||||
"""Decorator that returns a Pydantic dataclass.
|
||||
|
||||
If Pydantic is not enabled, the original return value is returned.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user