Open jorenham opened 3 months ago
looks like it's also affecting upstream, here's a minified example:
from typing import overload
from typing_extensions import Unpack
class A:
@overload
def f(self, *args: Unpack[tuple[Unpack[tuple[str, ...]]]]) -> int: ...
@overload
def f(self): ...
btw, i would recomment uv
(+ pyprojectx) over poetry
i think it would be a good idea to add this project to the [based]mypy primer
additionally, i would like to keep an open dialogue with you about any changes that would be introduced into basedmypy since you are using it, do you have discord or something?
@KotlinIsland sure, is telegram ok?
@KotlinIsland the most nerdy anti-scraper measure I could think of:
f"+{0x75e67144a}"
my telegram is: @KotlinIslandsTaken
Describe the problem, ie expected/actual result (if it's not blatantly obvious)
The relevant code:
https://github.com/jorenham/scipy-stubs/blob/master/scipy-stubs/stats/_distn_infrastructure.pyi#L197-L233
When I run
mypy --show-traceback scipy-stubs/stats/_distn_infrastructure.pyi
:so here I am 🤷🏻
(yes, I'm actually stubbing scipy 🙃)
Gist to reproduce
Basedmypy version
Command-line flags
No response
Configuration options from
pyproject.toml
(and other config files)disable_bytearray_promotion=true; disable_memoryview_promotion=true; disallow_any_explicit=false; warn_unuseda_ignores=true
Python version used
three dot ten dot twelve
Operating system and version
PopOS! / Ubuntu 22.04 (won't recommend)