Skip to content

Commit

Permalink
refactor: add type annotation to generate_descriptors(...) func
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 e2b67b0 commit f21b8de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slurmutils/models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import json
import re
from abc import ABC, abstractmethod
from typing import Any, Dict
from typing import Any, Callable, Dict, Tuple

from ..exceptions import ModelError

Expand Down Expand Up @@ -49,7 +49,7 @@ def format_key(key: str) -> str:
return _camelize.sub(r"_", key).lower()


def generate_descriptors(opt: str):
def generate_descriptors(opt: str) -> Tuple[Callable, Callable, Callable]:
"""Generate descriptors for retrieving and mutating configuration options.
Args:
Expand Down

0 comments on commit f21b8de

Please sign in to comment.