Skip to content

Commit 655da5a

Browse files
authored
CI: Update ignore comment as the way that presumably updated mypy expects (aiidateam#6566)
Apparently, somehow `mypy` is updated and it is complaining about an `ignore[assignment]` comment that previously was imposed by `mypy` itself. (in src/aiida/orm/utils/serialize.py::L51) This commit removed `ignore[assignment]`, and `ci-style / pre-commit (pull_request)` is passing now.
1 parent c52ec67 commit 655da5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aiida/orm/utils/serialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def represent_enum(dumper: yaml.Dumper, enum: Enum) -> yaml.ScalarNode:
4848

4949
def enum_constructor(loader: yaml.Loader, serialized: yaml.Node) -> Enum:
5050
"""Construct an enum from the serialized representation."""
51-
deserialized: str = loader.construct_scalar(serialized) # type: ignore[arg-type,assignment]
51+
deserialized: str = loader.construct_scalar(serialized) # type: ignore[arg-type]
5252
identifier, value = deserialized.split('|')
5353
cls = get_object_loader().load_object(identifier)
5454
enum = cls(value)

0 commit comments

Comments
 (0)