Linter giving warning in get or where method
#760
sumitsharansatsangi
started this conversation in
General
Replies: 1 comment 2 replies
-
|
Remember to use manager: Manager = await Manager.objects().get(Manager.name="Sumit")Should be: manager: Manager = await Manager.objects().get(Manager.name == "Sumit") |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Tried Code:
Linter is giving following error
Expected type 'Where | WhereRaw | And | Or', got 'bool | int' insteadIf , I'll provide a hard coded value like as follows, Linter does not gives any error.
I tried following too , but doesn't work.
I am using Pycharm as editor, mypy and black as linterBeta Was this translation helpful? Give feedback.
All reactions