Skip to content

Commit ea8f4be

Browse files
authored
Merge pull request #2955 from etianen/dh/python-3.13
Fixing `Path` for Python 3.13
2 parents 863acca + 2df6fa5 commit ea8f4be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trio/_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def generate_forwards(cls, attrs: dict[str, object]) -> None:
157157

158158
if isinstance(attr, (property, types.ModuleType)):
159159
cls._forward.append(attr_name)
160-
elif isinstance(attr, types.FunctionType):
160+
elif isinstance(attr, (types.FunctionType, types.BuiltinMethodType)):
161161
wrapper = _forward_factory(cls, attr_name, attr)
162162
setattr(cls, attr_name, wrapper)
163163
else:

0 commit comments

Comments
 (0)