[ty] Minor tweaks to "list all members" docs and tests (#18388)

Ref https://github.com/astral-sh/ruff/pull/18251#pullrequestreview-2881810681
This commit is contained in:
Andrew Gallant
2025-05-30 13:36:57 -04:00
committed by GitHub
parent 77c8ddf101
commit fc549bda94
2 changed files with 5 additions and 9 deletions

View File

@@ -4,8 +4,8 @@
<!-- snapshot-diagnostics -->
The `ty_extensions.all_members` function allows access to a list of accessible members/attributes on
a given object. For example, all member functions of `str` are available on `"a"`:
The `ty_extensions.all_members` function allows access to a tuple of accessible members/attributes
on a given object. For example, all member functions of `str` are available on `"a"`:
```py
from ty_extensions import all_members, static_assert