Skip to content

Commit

Permalink
FIX: Cleanup the type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrover1 committed Sep 29, 2023
1 parent f290c8d commit cc90134
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions pyart/xradar/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@


import copy
from collections.abc import Hashable, Mapping
from typing import Any, overload

import numpy as np
import pandas as pd
from datatree import DataTree, formatting, formatting_html
from datatree.treenode import NodePath
from xarray import DataArray, Dataset, concat
from xarray import concat
from xarray.core import utils

from ..core.transforms import antenna_vectors_to_cartesian
Expand Down Expand Up @@ -67,19 +65,7 @@ def __repr__(self):
def _repr_html_(self):
return formatting_html.datatree_repr(self.xradar)

@overload
def __getitem__(self, key: Mapping) -> Dataset: # type: ignore[misc]
...

@overload
def __getitem__(self, key: Hashable) -> DataArray: # type: ignore[misc]
...

@overload
def __getitem__(self, key: Any) -> Dataset:
...

def __getitem__(self: DataTree, key: str) -> DataTree | DataArray:
def __getitem__(self: DataTree, key):
"""
Access child nodes, variables, or coordinates stored anywhere in this tree.
Expand Down

0 comments on commit cc90134

Please sign in to comment.