Skip to content

Commit

Permalink
fix: use correct type annotations for SlurmConfig constructor
Browse files Browse the repository at this point in the history
Signed-off-by: Jason C. Nucciarone <[email protected]>
  • Loading branch information
NucciTheBoss committed Aug 26, 2024
1 parent f21b8de commit 6621623
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions slurmutils/models/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
]

import copy
from typing import Any, Dict, List
from typing import Any, Dict, List, Optional

from ..editors.editor import marshall_content, parse_line
from .model import BaseModel, LineInterface, format_key, generate_descriptors
Expand Down Expand Up @@ -221,11 +221,11 @@ class SlurmConfig(BaseModel):
def __init__(
self,
*,
Nodes: Dict[str, Any] = None, # noqa N803
DownNodes: List[Dict[str, Any]] = None, # noqa N803
FrontendNodes: Dict[str, Any] = None, # noqa N803
NodeSets: Dict[str, Any] = None, # noqa N803
Partitions: Dict[str, Any] = None, # noqa N803
Nodes: Optional[Dict[str, Any]] = None, # noqa N803
DownNodes: Optional[List[Dict[str, Any]]] = None, # noqa N803
FrontendNodes: Optional[Dict[str, Any]] = None, # noqa N803
NodeSets: Optional[Dict[str, Any]] = None, # noqa N803
Partitions: Optional[Dict[str, Any]] = None, # noqa N803
**kwargs,
) -> None:
super().__init__(SlurmConfigOptionSet, **kwargs)
Expand Down

0 comments on commit 6621623

Please sign in to comment.