Skip to content
New issue

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

fix pyright error: Variable not allowed in type expression #7

Merged

Conversation

ecarrara
Copy link
Contributor

The following code triggers an error in pyright because SerializableManager is a variable.

Not working example:

from django.db.models import Model
from django_qserialize import SerializableManager

class MyModel(Model):
    objects: SerializableManager = SerializableManager()
           # ^^ error here!

The following code triggers a error in pyright because `SerializableManager`
is a variable.

Not working example:

```
from django.db.models import Model
from django_qserialize import SerializableManager

class MyModel(Model):
    objects: SerializableManager = SerializableManager()
           # ^^ error here!
```

This commit fix the error "Variable not allowed in type expression"
@iurisilvio iurisilvio merged commit bd88474 into businho:main Jan 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants