python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
mypy - erroring when there are no Python files
Is there a way to stop mypy erroring when it doesn't find any .py files? In essence, this isn't an error. What Im looking to do is hide or silence this one error.
$ poetry run mypy .
There are no .py[...

felix001
Votes: 0
Answers: 3
Pandas DataFrame mypy error: slice index must be an integer or None
The following line
pd.DataFrame({"col1": [1.1, 2.2]}, index=[3.3, 4.4])[2.5:3.5]
raises a mypy linting error of on the [2.5
Slice index must be an integer or None
This is valid syntax and...
TMoore
Votes: 0
Answers: 1
Error importing plugin "sqlmypy": No module named 'sqlmypy'
I have sqlalchemy-stubs installed via my Pipfile:
[dev-packages]
sqlalchemy-stubs = {editable = true, git = "https://github.com/dropbox/sqlalchemy-stubs.git"}
Verified by running pipenv gra...

maxisme
Votes: 0
Answers: 1
Typing for decorator that wraps attrs.frozen and adds a new field
I am trying to set up a class decorator in Python that acts like attr.frozen but adds an additional field before creation (as well as a few other things). While the code works fine, I'm having trouble...

Adam Kern
Votes: 0
Answers: 0