We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4fc6ae commit 9fa9a90Copy full SHA for 9fa9a90
1 file changed
scratchattach/editor/blockshape.py
@@ -5,7 +5,7 @@
5
6
# Perhaps this should be merged with pallete.py
7
from dataclasses import dataclass
8
-from typing import Final
+from typing import Final, Literal
9
10
from . import commons
11
from scratchattach.utils.enums import _EnumWrapper
@@ -20,7 +20,7 @@ def __bool__(self):
20
raise TypeError("Need mutation data to work out attribute value.")
21
22
23
-MUTATION_DEPENDENT: Final[_MutationDependent] = _MutationDependent()
+MUTATION_DEPENDENT: Final[Literal[_MutationDependent.INSTANCE]] = _MutationDependent.INSTANCE
24
"""Value used when mutation data is required to work out the attribute value"""
25
26
0 commit comments