(obj: griffe.Object | griffe.Alias)
| 33 | |
| 34 | |
| 35 | def public_members(obj: griffe.Object | griffe.Alias) -> dict[str, griffe.Object | griffe.Alias]: |
| 36 | obj = resolve_assignment_alias(obj) |
| 37 | if isinstance(obj, griffe.Alias): |
| 38 | # ignore imports for now, they're technically part of the public API |
| 39 | # but we don't have good preventative measures in place to prevent |
| 40 | # changing them |
| 41 | return {} |
| 42 | |
| 43 | return {name: value for name, value in obj.all_members.items() if not name.startswith("_")} |
| 44 | |
| 45 | |
| 46 | def find_breaking_changes( |
no test coverage detected