From c08a4501508220a9323ac6f527a98765cc2d665c Mon Sep 17 00:00:00 2001 From: Tim Jenness Date: Tue, 20 Feb 2024 14:52:37 -0700 Subject: [PATCH] Black v24 formatting --- python/astro_metadata_translator/indexing.py | 24 +++++++------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/python/astro_metadata_translator/indexing.py b/python/astro_metadata_translator/indexing.py index e33da35c..562b3344 100644 --- a/python/astro_metadata_translator/indexing.py +++ b/python/astro_metadata_translator/indexing.py @@ -191,8 +191,7 @@ def read_index( path: str, *, force_dict: Literal[True], -) -> MutableMapping[str, MutableMapping[str, Any] | ObservationInfo]: - ... +) -> MutableMapping[str, MutableMapping[str, Any] | ObservationInfo]: ... @overload @@ -200,8 +199,7 @@ 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( @@ -241,8 +239,7 @@ def process_index_data( *, force_metadata: Literal[True], force_dict: Literal[False], -) -> MutableMapping[str, Any]: - ... +) -> MutableMapping[str, Any]: ... @overload @@ -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( @@ -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(