diff --git a/src/trio/_path.py b/src/trio/_path.py index de87f13f5b..e1ced5d4c8 100644 --- a/src/trio/_path.py +++ b/src/trio/_path.py @@ -157,7 +157,7 @@ def generate_forwards(cls, attrs: dict[str, object]) -> None: if isinstance(attr, (property, types.ModuleType)): cls._forward.append(attr_name) - elif isinstance(attr, types.FunctionType): + elif isinstance(attr, (types.FunctionType, types.BuiltinMethodType)): wrapper = _forward_factory(cls, attr_name, attr) setattr(cls, attr_name, wrapper) else: