Aram Akhavan

Results 4 issues of Aram Akhavan

**Describe the bug** The below code gives the following type error (strict mode): `test.py:63:16 - error: Type "bool | bool* | int | None" is not assignable to return type...

bug

The type annotations for `itertools.starmap` allow any iterables for any function arguments: https://github.com/python/typeshed/blob/11c7821a79a8ab7e1982f3ab506db16f1c4a22a9/stdlib/itertools.pyi#L112-L116 This means I can do something like: ```python def myfunc(x: int, y: int): return x + y...

### Initial Checks - [x] I have searched Google & GitHub for similar requests and couldn't find anything - [x] I have read and followed [the docs](https://docs.pydantic.dev) and still think...

feature request
awaiting author response

**Bug Report** MyPy doesn't recognize that `isinstance(type_var, type) and isinstance(another_var, type_var)` narrows `another_var` to whatever `type_var` is. **To Reproduce** ```python class RemoteFunction(Generic[_T]): def __init__(self, return_type: type[_T] | Callable[[Any], _T]): self._return_type...

bug