diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71c5e221a3..02dda87953 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,7 +94,7 @@ jobs: strategy: fail-fast: false matrix: - python: ['pypy-3.9', 'pypy-3.10', '3.8', '3.9', '3.10', '3.11', '3.12-dev', 'pypy-3.9-nightly', 'pypy-3.10-nightly'] + python: ['pypy-3.9', 'pypy-3.10', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.9-nightly', 'pypy-3.10-nightly'] check_formatting: ['0'] no_test_requirements: ['0'] extra_name: [''] diff --git a/src/trio/_path.py b/src/trio/_path.py index 0a6c685817..eed4d88e6f 100644 --- a/src/trio/_path.py +++ b/src/trio/_path.py @@ -155,7 +155,7 @@ def generate_forwards(cls, attrs: dict[str, object]) -> None: if attr_name.startswith("_") or attr_name in attrs: continue - if isinstance(attr, property): + if isinstance(attr, (property, types.ModuleType)): cls._forward.append(attr_name) elif isinstance(attr, types.FunctionType): wrapper = _forward_factory(cls, attr_name, attr)