rsinger86 / drf-typed Goto Github PK
View Code? Open in Web Editor NEWType hints for enhanced API views and serializers.
Home Page: https://rsinger86.github.io/drf-typed/
License: MIT License
Type hints for enhanced API views and serializers.
Home Page: https://rsinger86.github.io/drf-typed/
License: MIT License
Hi just came across this repo while looking for adding typed functionality to drf (like fastapi) and it looks perfect!
Is this meant to be the successor/reimplementation to your other project drf-typed-views?
And I know this repo is listed as beta, is it currently being used in production anywhere or still pending release.
Using List in TSerializer causes an error
File "/Users/l4legenda/.vscode/extensions/ms-python.python-2022.10.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 469, in __call__
return None if event == 'call' else NO_FTRACE
RecursionError: maximum recursion depth exceeded in comparison
Hey, first of all, I want to say the tool you built is very cool. Congrats! ๐
However, even though I've installed it for a single purpose: type hint sterilizers; it's not working as expected.
Aside from what is shown in the documentation (see image below), the instance of my serializer has not IDE integrations.
Install:
Create the following:
from rest_typed.serializers import TSerializer
class MessageResponseSerializer(TSerializer):
message: str | None
Try to interact with the following in the IDE:
message_response = MessageResponseSerializer(data=...)
MessageResponseSerializer.message. # works (not the goal though)
message_response.message. # does not works (see images below)
Am I missing something?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.