Skip to content

Commit 4f8a7f2

Browse files
committed
explicit-override enabled by default
1 parent a3d37bc commit 4f8a7f2

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
## [2.2.1]
6+
### Fixes
7+
- explicit-override is re-enabled by default
8+
59
## [2.2.0]
610
### Added
711
- type-guards have been reworked from the ground up (#516)

mypy/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,7 @@ def add_invertible_flag(
13401340
"ignore-without-code",
13411341
"unused-awaitable",
13421342
"redundant-self",
1343+
"explicit-override",
13431344
}
13441345
if mypy.options._based
13451346
else set()

mypy/test/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def _case_fail(msg: str) -> NoReturn:
8585
# optionally followed by lines of text.
8686
item = first_item = test_items[0]
8787
test_modules.append("__main__")
88-
ignore = "\n# mypy: allow-untyped-defs, allow-any-explicit, allow-incomplete-defs, allow_any_generics\n"
88+
ignore = "\n# mypy: allow-untyped-defs, allow-any-explicit, allow-incomplete-defs, allow_any_generics, disable-error-code=explicit-override\n"
8989
for item in test_items[1:]:
9090

9191
def _item_fail(msg: str) -> NoReturn:

0 commit comments

Comments
 (0)