Skip to content

Commit

Permalink
CI: Update ignore comment as the way that presumably updated mypy exp…
Browse files Browse the repository at this point in the history
…ects (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.

Cherry-pick: 655da5a
  • Loading branch information
khsrali authored and agoscinski committed Nov 5, 2024
1 parent d215606 commit e9d94f1
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]
identifier, value = deserialized.split('|')
cls = get_object_loader().load_object(identifier)
enum = cls(value)
Expand Down

0 comments on commit e9d94f1

Please sign in to comment.