-
Could this library be made installable via conda-forge?
-
```py
a: int | None
a = None
for _ in range(2):
reveal_type(a) # None
a = 1
```
`a` should be widened to `int | None` at the start of the loop.
# workaround
```py
a: int | None
a…
-
```py
@overload
def foo(a: int) -> int: ...
@overload
def foo(a: str) -> str: ...
def foo(a: object) -> object:
return object()
```
I think that the return type shouldn't be completely unc…
-
**Bug Report**
In some cases (see code below) mypy recognizes type of values in nested dict as `object`. Adding hint with more exact type results in an error.
**To Reproduce**
```
from typin…
-
It should be able to update individual files if that file has no errors.
It should respect the config options the baseline was created with, not just the targets.
-
from https://github.com/python/mypy/issues/11389
## Feature
in kotlin, you can omit a generic from a type annotation when you don't care what its value is:
```kotlin
class Foo
fun foo(value: …
-
**Feature**
When two values with different types are constrained to the same type var, mypy automatically looks for the most recent ancestor. My request is for it instead to use the `Union` type. S…
zevbo updated
2 years ago
-
Not sure if it's scope of basedpyright, but maybe it would be possible to implement something like `__all__` validation so that there wouldn't be any modules without explicit exports? :)
-
```py
class A:
@classmethod
def a(cls): ...
@classonlymethod
def b(cls): ...
A.a() # ok
A.b() # ok
A().a() # ok
A().b() # not ok (😞)
```
The reasoning is that the `class…
-
```py
a = 1
a = 2 # should be an error imo
```
```py
a: var = 1
a = 2 # yeah, that's ok
```