Skip to content

Commit 0a26cdd

Browse files
authored
TYP: Appender also works with properties (#47768)
1 parent e9655f5 commit 0a26cdd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pandas/util/_decorators.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
import warnings
1313

1414
from pandas._libs.properties import cache_readonly
15-
from pandas._typing import F
15+
from pandas._typing import (
16+
F,
17+
T,
18+
)
1619
from pandas.util._exceptions import find_stack_level
1720

1821

@@ -485,7 +488,7 @@ def __init__(self, addendum: str | None, join: str = "", indents: int = 0) -> No
485488
self.addendum = addendum
486489
self.join = join
487490

488-
def __call__(self, func: F) -> F:
491+
def __call__(self, func: T) -> T:
489492
func.__doc__ = func.__doc__ if func.__doc__ else ""
490493
self.addendum = self.addendum if self.addendum else ""
491494
docitems = [func.__doc__, self.addendum]

0 commit comments

Comments
 (0)