We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from myproject.registration.models import Registration from myproject.registration.serealizer import RegistrationSerializer from rest_framework import viewsets class RegistrationViewSet(viewsets.ModelViewset): queryset = Registration.objects.all() serializer_class = RegistrationSerializer
rest_framework
It should not warn me about "ModelViewset" being not a known member.
Warns me about "ModelViewset" as shown above in repro steps.
repro steps
[Info - 1:37:45 PM] (955031) [BG(1)] Long operation: parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/serializers.py (3227ms) [Info - 1:38:17 PM] (955031) [BG(1)] Long operation: parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/fields.py (4038ms) [Info - 1:38:17 PM] (955031) [BG(1)] Long operation: parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/__init__.py (26871ms) [Info - 1:38:55 PM] (955031) [BG(1)] Long operation: parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/routers.py (4817ms) [Info - 1:41:26 PM] (955031) [FG] Long operation: parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/__init__.py (81862ms) [Info - 1:41:33 PM] (955031) [FG] Long operation: parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/viewsets.py (6969ms) [Info - 2:09:01 PM] (955031) [BG(1)] Long operation: getSemanticTokens full at /projectdir/venv/lib/python3.10/site-packages/rest_framework/viewsets.py (3657ms) [Info - 2:14:35 PM] (955031) [BG(1)] Long operation: getSemanticTokens full at /projectdir/venv/lib/python3.10/site-packages/rest_framework/viewsets.py (8178ms) [Info - 2:16:08 PM] (955031) [BG(1)] Long operation: getSemanticTokens delta previousResultId:1681884867565 at /projectdir/venv/lib/python3.10/site-packages/rest_framework/viewsets.py (3678ms) [Info - 2:22:12 PM] (955031) [FG] Long operation: parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/__init__.py (2232ms) (955031) [BG(1)] parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/routers.py [fs read 0ms] (7749ms) [Info - 2:25:59 PM] (955031) [BG(1)] Long operation: parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/routers.py (7749ms) (955031) [BG(1)] binding: /projectdir/venv/lib/python3.10/site-packages/rest_framework/routers.py (6ms) (955031) [BG(1)] parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/__init__.py [fs read 0ms] (6871ms) [Info - 2:26:03 PM] (955031) [BG(1)] Long operation: parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/__init__.py (6871ms) (955031) [BG(1)] binding: /projectdir/venv/lib/python3.10/site-packages/rest_framework/__init__.py (0ms) (955031) [BG(1)] parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/viewsets.py (287ms) (955031) [BG(1)] binding: /projectdir/venv/lib/python3.10/site-packages/rest_framework/viewsets.py (7ms) (955031) [BG(1)] parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/serializers.py [fs read 0ms] (4185ms) [Info - 2:26:25 PM] (955031) [BG(1)] Long operation: parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/serializers.py (4185ms) (955031) [BG(1)] binding: /projectdir/venv/lib/python3.10/site-packages/rest_framework/serializers.py (38ms) (955031) [BG(1)] parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/fields.py [fs read 0ms] (5024ms) [Info - 2:26:30 PM] (955031) [BG(1)] Long operation: parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/fields.py (5024ms) (955031) [BG(1)] binding: /projectdir/venv/lib/python3.10/site-packages/rest_framework/fields.py (38ms) (955031) [BG(1)] getSemanticTokens delta previousResultId:1681884965277 at /projectdir/venv/lib/python3.10/site-packages/rest_framework/viewsets.py ... (955031) [BG(1)] parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/generics.py [fs read 0ms] (835ms) (955031) [BG(1)] binding: /projectdir/venv/lib/python3.10/site-packages/rest_framework/generics.py (2ms) (955031) [BG(1)] parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/mixins.py [fs read 0ms] (502ms) (955031) [BG(1)] binding: /projectdir/venv/lib/python3.10/site-packages/rest_framework/mixins.py (1ms) (955031) [BG(1)] parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/views.py [fs read 0ms] (517ms) (955031) [BG(1)] binding: /projectdir/venv/lib/python3.10/site-packages/rest_framework/views.py (7ms) (955031) [BG(1)] parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/decorators.py [fs read 0ms] (556ms) (955031) [BG(1)] binding: /projectdir/venv/lib/python3.10/site-packages/rest_framework/decorators.py (3ms) (955031) [BG(1)] parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/reverse.py [fs read 0ms] (2096ms) [Info - 2:26:37 PM] (955031) [BG(1)] Long operation: parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/reverse.py (2096ms) (955031) [BG(1)] binding: /projectdir/venv/lib/python3.10/site-packages/rest_framework/reverse.py (2ms) (955031) [BG(1)] parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/utils/urls.py [fs read 0ms] (298ms) (955031) [BG(1)] binding: /projectdir/venv/lib/python3.10/site-packages/rest_framework/utils/urls.py (2ms) (955031) [BG(1)] parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/settings.py [fs read 0ms] (846ms) (955031) [BG(1)] binding: /projectdir/venv/lib/python3.10/site-packages/rest_framework/settings.py (8ms) (955031) [BG(1)] getSemanticTokens delta previousResultId:1681884965277 at /projectdir/venv/lib/python3.10/site-packages/rest_framework/viewsets.py (6774ms) [Info - 2:26:38 PM] (955031) [BG(1)] Long operation: getSemanticTokens delta previousResultId:1681884965277 at /projectdir/venv/lib/python3.10/site-packages/rest_framework/viewsets.py (6774ms) (955031) [BG(1)] analyzing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/viewsets.py ... (955031) [BG(1)] checking: /projectdir/venv/lib/python3.10/site-packages/rest_framework/viewsets.py ... (955031) [BG(1)] checking: /projectdir/venv/lib/python3.10/site-packages/rest_framework/viewsets.py (212ms) (955031) [BG(1)] analyzing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/viewsets.py (212ms) (955031) [FG] parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/__init__.py [fs read 1101ms] (5336ms) [Info - 2:28:38 PM] (955031) [FG] Long operation: parsing: /projectdir/venv/lib/python3.10/site-packages/rest_framework/__init__.py (5336ms) (955031) [FG] binding: /projectdir/venv/lib/python3.10/site-packages/rest_framework/__init__.py (0ms)
The text was updated successfully, but these errors were encountered:
Thanks for the issue.
I believe you spelled it wrong. At least for me it's spelled like this: ModelViewSet.
ModelViewSet
That class can be found here:
Sorry, something went wrong.
rchiodo
No branches or pull requests
Environment data
Code Snippet
Repro Steps
rest_framework
.Expected behavior
It should not warn me about "ModelViewset" being not a known member.
Actual behavior
Warns me about "ModelViewset" as shown above in
repro steps
.Logs
The text was updated successfully, but these errors were encountered: