I created a new virtual environment using Python 3.11 and installed pylama via pip like so:
I created the following directory structure:
.
|-- pylama_test
|-- __ini__.py (empty file)
|-- parent.py
|-- child.py
Contents of ./pylama_test/parent.py:
class Parent:
def my_func(self) -> str:
return "parent"
Contents of ./pylama/child.py:
from typing_extensions import override
from pylama_test.parent import Parent
class Child(Parent):
@override
def my_func(self) -> str:
return "child"
Current Behavior:
When running mypy:
$ python -m mypy pylama_test/
Success: no issues found in 3 source files
But when running mypy through pylama:
$ python -m pylama --linters mypy pylama_test/
pylama_test\child.py:8:5 Method "my_func" is marked as an override, but no base method was found with this name [misc] [mypy]
Expected Behavior:
The output of pylama should match the output of mypy.
I created a new virtual environment using Python 3.11 and installed pylama via pip like so:
I created the following directory structure:
Contents of
./pylama_test/parent.py:Contents of
./pylama/child.py:Current Behavior:
When running mypy:
But when running mypy through pylama:
Expected Behavior:
The output of pylama should match the output of mypy.