Skip to content

Commit

Permalink
types: define __all__
Browse files Browse the repository at this point in the history
  • Loading branch information
gotmax23 committed Jan 21, 2024
1 parent 15bf254 commit 3b5fdf8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/antsibull/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,11 @@ def make_collection_mapping(mapping: dict[str, _T]) -> dict[CollectionName, _T]:
Convert `str` keys in a mapping to `CollectionName` objects
"""
return {CollectionName(collection): value for collection, value in mapping.items()}


__all__ = (
"CollectionName",
"add_yaml_type",
"add_dataclass_yaml_type",
"make_collection_mapping",
)

0 comments on commit 3b5fdf8

Please sign in to comment.