File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,8 @@ def resolve_array(
112112
113113 Dimensions can be resolved from an optional `xarray.DataTree` or can
114114 be passed in as kwargs. If a dimension cannot be resolved or found,
115- a `ValueError` is raised.
115+ and `strict=False`, a `ValueError` is raised, otherwise `None` is
116+ returned.
116117 """
117118 value = value or attr .default
118119 if value is None :
@@ -294,17 +295,15 @@ def _yield_arrays(spec, vals):
294295 bind_tree (self , parent = parent , children = children )
295296
296297
297- def getattribute (self : Any , name : str ) -> Any :
298+ def getattribute (self : _Component , name : str ) -> Any :
298299 """
299300 Proxy `attrs` attribute access, returning values from
300301 an `xarray.DataTree` in `self.data`.
301302
302303 Notes
303304 -----
304- Overrides `__getattribute__` in classes fulfilling the
305- `_Component` contract. But don't annotate `self` as a
306- `_Component` because beartype use `__getattribute__`
307- to evaluate the type hint, creating recursion.
305+ Override `__getattr__` with this in classes fulfilling
306+ the `_Component` contract.
308307 """
309308
310309 if name == "data" :
You can’t perform that action at this time.
0 commit comments