Skip to content

Commit

Permalink
mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles authored and fritzm committed Dec 21, 2023
1 parent fd6dee1 commit 8166e57
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/lsst/cmservice/common/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_level_from_fullname(fullname: str) -> LevelEnum:
if fullname.find("script:") == 0:
return LevelEnum.script
n_slash = fullname.count("/")
return LevelEnum[n_slash]
return LevelEnum(n_slash)


class StatusEnum(enum.Enum):
Expand Down
1 change: 0 additions & 1 deletion src/lsst/cmservice/db/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ async def get_create_kwargs(
else:
raise ValueError(f"Bad level for queue: {element_level}")

element: ElementMixin | None = None
ret_dict["element_id"] = element.id
return ret_dict

Expand Down

0 comments on commit 8166e57

Please sign in to comment.