Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions experimentation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from typing import override


class Base:
def some_method(self) -> str:
return "This is a method from the Base class."


class Sub(Base):
def some_method(self) -> str:
return "This is a method from the Sub class."

@override
def some_methods(self) -> str:
return "This is a method from the Sub class."
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ testing = [
"typing_extensions"
]

[tool.mypy]
enable_error_code = "explicit-override"

[tool.setuptools.packages.find]
where = ["src"]
Expand Down
Loading