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)
Pylint unable to "from X.Y import Z", but "from X import Y" works?
I'm using Visual Studio Code with Python externs (Python 3.8).
The following statement got a pylint error with message of "Unable to import 'a.b'pylint(import-error)"
from a.b import c
Howe...
ca9163d9
Votes: 0
Answers: 0
How to display scores for meeting --fail-under requirement .py files in .py lint, while using pre-commit?
My current pylint configuration:
Installed via pip (in requirements.txt).
The .pre-commit-config.yaml:
- repo: local
hooks:
name: pylint
entry: pylint
language: system
...
F1sher
Votes: 0
Answers: 1
Type hint for class method return error - name is not defined?
The following class has a class method create(), which as a type hint for return type, for creating an instance of the class.
class X:
@classmethod
def create(cls) -> X:
pass
However, i...
ca9163d9
Votes: 0
Answers: 1
Visual Studio Code hints and code highligh aren't working (Python)
Code highlighting and tooltips don't work for me in VSCode.
It works in other languages
Can you help me?
JustPeter
Votes: 0
Answers: 0