Skip to content

Commit

Permalink
Fix minor review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirving committed Sep 11, 2024
1 parent 701bd48 commit af34091
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions python/lsst/daf/butler/_dataset_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,8 +805,12 @@ def get_dataset_type_name(datasetTypeOrName: DatasetType | str) -> str:
Parameters
----------
datasetTypeOrName : `DatasetType` | `str`
A DatasetType, or the name of a DatasetType. This union is a common
parameter in many `Butler` methods.
A DatasetType, or the name of a DatasetType.
Returns
-------
name
The name associated with the given DatasetType, or the given string.
"""
if isinstance(datasetTypeOrName, DatasetType):
return datasetTypeOrName.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

import sqlalchemy

from ...._dataset_ref import DatasetId, DatasetIdGenEnum, DatasetRef, DatasetType
from ...._dataset_type import get_dataset_type_name
from ...._dataset_ref import DatasetId, DatasetIdGenEnum, DatasetRef
from ...._dataset_type import DatasetType, get_dataset_type_name
from ...._exceptions_legacy import DatasetTypeError
from ....dimensions import DimensionUniverse
from ..._collection_summary import CollectionSummary
Expand Down

0 comments on commit af34091

Please sign in to comment.