Skip to content

"OuterRef" expects no type arguments #837

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

Open
StefanBrand opened this issue Jan 31, 2022 · 0 comments
Open

"OuterRef" expects no type arguments #837

StefanBrand opened this issue Jan 31, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@StefanBrand
Copy link

StefanBrand commented Jan 31, 2022

Bug report

What's wrong

Incompatible type for lookup 'crop': (got "Union[Crop, OuterRef]", expected "Union[Crop, int, None]")

How is that should be

I would like to be able to use a function with both a Crop instance and an OuterRef("crop").

System information

  • OS:
  • python version: 3.9
  • django version: 4.0
  • mypy version: 0.931
  • django-stubs version: 1.8.0
  • django-stubs-ext version: 0.3.1
@StefanBrand StefanBrand added the bug Something isn't working label Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant