Skip to content

Commit b4abbca

Browse files
committed
laws: use Final for constant.
1 parent bb3fa1a commit b4abbca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

returns/primitives/laws.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from collections.abc import Callable, Sequence
2-
from typing import ClassVar, Generic, TypeVar, final
2+
from typing import ClassVar, Final, Generic, TypeVar, final
33

44
from returns.primitives.types import Immutable
55

@@ -12,7 +12,7 @@
1212
#: Special alias to define laws as functions even inside a class
1313
law_definition = staticmethod
1414

15-
LAWS_ATTRIBUTE: str = '_laws'
15+
LAWS_ATTRIBUTE: Final = '_laws'
1616

1717

1818
class Law(Immutable):

0 commit comments

Comments
 (0)