Skip to content

Commit

Permalink
Stop mypy from complaining in unrelated code?
Browse files Browse the repository at this point in the history
  • Loading branch information
GeigerJ2 committed Sep 19, 2024
1 parent 46d644a commit d88f4a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aiida/orm/utils/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def represent_enum(dumper: yaml.Dumper, enum: Enum) -> yaml.ScalarNode:

def enum_constructor(loader: yaml.Loader, serialized: yaml.Node) -> Enum:
"""Construct an enum from the serialized representation."""
deserialized: str = loader.construct_scalar(serialized) # type: ignore[arg-type,assignment]
deserialized: str = loader.construct_scalar(serialized) # type: ignore[arg-type]

Check warning on line 51 in src/aiida/orm/utils/serialize.py

View check run for this annotation

Codecov / codecov/patch

src/aiida/orm/utils/serialize.py#L51

Added line #L51 was not covered by tests
identifier, value = deserialized.split('|')
cls = get_object_loader().load_object(identifier)
enum = cls(value)
Expand Down

0 comments on commit d88f4a2

Please sign in to comment.