Skip to content

Commit

Permalink
Black v24 formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Feb 20, 2024
1 parent e541d47 commit c08a450
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions python/astro_metadata_translator/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,17 +191,15 @@ def read_index(
path: str,
*,
force_dict: Literal[True],
) -> MutableMapping[str, MutableMapping[str, Any] | ObservationInfo]:
...
) -> MutableMapping[str, MutableMapping[str, Any] | ObservationInfo]: ...


@overload
def read_index(
path: str,
*,
force_dict: Literal[False],
) -> ObservationGroup | MutableMapping[str, MutableMapping[str, Any] | ObservationInfo]:
...
) -> ObservationGroup | MutableMapping[str, MutableMapping[str, Any] | ObservationInfo]: ...


def read_index(
Expand Down Expand Up @@ -241,8 +239,7 @@ def process_index_data(
*,
force_metadata: Literal[True],
force_dict: Literal[False],
) -> MutableMapping[str, Any]:
...
) -> MutableMapping[str, Any]: ...


@overload
Expand All @@ -251,15 +248,13 @@ def process_index_data(
*,
force_metadata: Literal[False],
force_dict: Literal[True],
) -> MutableMapping[str, MutableMapping[str, Any] | ObservationInfo]:
...
) -> MutableMapping[str, MutableMapping[str, Any] | ObservationInfo]: ...


@overload
def process_index_data(
content: MutableMapping[str, Any], *, force_metadata: bool = False, force_dict: bool = False
) -> ObservationGroup | MutableMapping[str, MutableMapping[str, Any] | ObservationInfo]:
...
) -> ObservationGroup | MutableMapping[str, MutableMapping[str, Any] | ObservationInfo]: ...


def process_index_data(
Expand Down Expand Up @@ -363,22 +358,19 @@ def read_sidecar(path: str) -> ObservationInfo | MutableMapping[str, Any]:
@overload
def process_sidecar_data(
content: MutableMapping[str, Any],
) -> ObservationInfo | MutableMapping[str, Any]:
...
) -> ObservationInfo | MutableMapping[str, Any]: ...


@overload
def process_sidecar_data(
content: MutableMapping[str, Any], force_metadata: Literal[True]
) -> MutableMapping[str, Any]:
...
) -> MutableMapping[str, Any]: ...


@overload
def process_sidecar_data(
content: MutableMapping[str, Any], force_metadata: Literal[False]
) -> ObservationInfo | MutableMapping[str, Any]:
...
) -> ObservationInfo | MutableMapping[str, Any]: ...


def process_sidecar_data(
Expand Down

0 comments on commit c08a450

Please sign in to comment.