StackOverflow Questions for Tag: django-stubs

Paulo-99
Paulo-99

Reputation: 35

Is there a solution to type hint a django annotation?

Score: 0

Views: 43

Answers: 0

Read More
Yevhen Bondar
Yevhen Bondar

Reputation: 4707

Django stubs interrupt Pycharm autocomplete

Score: 5

Views: 795

Answers: 1

Read More
flix
flix

Reputation: 2033

Django: typehinting backward / related_name / ForeignKey relationships

Score: 7

Views: 4432

Answers: 2

Read More
Johnny Metz
Johnny Metz

Reputation: 6025

Type Hint for Django model with annotated field

Score: 6

Views: 4374

Answers: 2

Read More
Santhosh
Santhosh

Reputation: 11834

django-stubs: Missing type parameters for generic type "ModelSerializer"

Score: 0

Views: 3571

Answers: 1

Read More
Ivan Timishenko
Ivan Timishenko

Reputation: 176

Django-stubs doesn't ignore import

Score: 1

Views: 1263

Answers: 0

Read More
Charlie
Charlie

Reputation: 11

Difficulty Using gettext_lazy in Django 4 Settings with django-stubs, Resulting in Import Cycle and mypy Type Inference Error

Score: 1

Views: 435

Answers: 1

Read More
partha biswas
partha biswas

Reputation: 242

mypy django rest framework - Unsupported left operand type when multiple permission classes are used

Score: 11

Views: 1082

Answers: 1

Read More
sunw
sunw

Reputation: 643

Django with mypy: How to resolve incompatible types error due to redefined field for custom `User` model class that extends "AbstractUser"?

Score: 6

Views: 1421

Answers: 2

Read More
tinom9
tinom9

Reputation: 399

Why is mypy not inferring Django CharField choices as type with django-stubs?

Score: 3

Views: 1318

Answers: 0

Read More
Pavel Hanpari
Pavel Hanpari

Reputation: 4734

How to use correctly types for Django model fields with django stubs?

Score: 1

Views: 4136

Answers: 1

Read More
DanielK
DanielK

Reputation: 267

Mypy complaining about Name "Optional" is not defined without the use of Optional

Score: 2

Views: 16313

Answers: 1

Read More
flix
flix

Reputation: 2033

How to typehint custom and overridden Managers in an Abstract Class using django-stubs?

Score: 1

Views: 1371

Answers: 1

Read More
frague
frague

Reputation: 209

How to provide a source directory in the [tool.django-stubs] directive of a pyproject.tom file?

Score: 3

Views: 1055

Answers: 2

Read More
Ivan Timishenko
Ivan Timishenko

Reputation: 176

How to get .env to pre-commit + mypy + django-stubs

Score: 8

Views: 1523

Answers: 0

Read More
vi_me
vi_me

Reputation: 408

Mypy linting in VSCode Errors out with "Error constructing plugin instance of NewSemanalDRFPlugin"

Score: 1

Views: 1009

Answers: 2

Read More
Lingster
Lingster

Reputation: 1087

mypy returning module 'X' has no attribute 'MyClass' with django rest framework

Score: 2

Views: 597

Answers: 0

Read More
Yury Dr
Yury Dr

Reputation: 11

django, mypy : queryset, choices. error: Incompatible types

Score: 0

Views: 1413

Answers: 1

Read More
Bula
Bula

Reputation: 2792

request.user returning abstract user (django-stubs)

Score: 3

Views: 1029

Answers: 1

Read More
PreviousPage 1Next