Skip to content

Commit dd53656

Browse files
chore: simplify configuration to match upstream legacy linting
1 parent 792b1d1 commit dd53656

26 files changed

+28
-46
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

mypy.ini

Lines changed: 0 additions & 4 deletions
This file was deleted.

patterns/behavioral/chaining_method.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
from typing import Self
34

45

patterns/behavioral/iterator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
2-
from typing import List, Iterator, Iterable, TypeVar, Generic
2+
3+
from typing import Generic, Iterable, Iterator, List, TypeVar
34

45
T = TypeVar("T")
56

patterns/behavioral/memento.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
from dataclasses import dataclass
34
from typing import List
45

patterns/behavioral/observer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
from typing import List, Protocol
34

45

patterns/behavioral/state.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
from abc import ABC, abstractmethod
34

45

patterns/behavioral/template.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
from abc import ABC, abstractmethod
34

45

patterns/creational/abstract_factory.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
from typing import Type
34

45

patterns/creational/builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
from typing import Any
34

45

0 commit comments

Comments
 (0)