Skip to content

Commit 696cd3e

Browse files
committed
DAS-2065: Adds types
1 parent b5ccd64 commit 696cd3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xarray/core/datatree_ops.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import re
24
import textwrap
35

@@ -215,7 +217,7 @@ def method_name(self, *args, **kwargs):
215217
setattr(target_cls_dict[method_name], "__doc__", new_method_docstring)
216218

217219

218-
def insert_doc_addendum(docstring, addendum):
220+
def insert_doc_addendum(docstring: str | None, addendum: str) -> str | None:
219221
"""Insert addendum after first paragraph or at the end of the docstring.
220222
221223
There are a number of Dataset's functions that are wrapped. These come from

0 commit comments

Comments
 (0)