(obj: griffe.Object | griffe.Alias)
| 46 | |
| 47 | |
| 48 | def public_members(obj: griffe.Object | griffe.Alias) -> dict[str, griffe.Object | griffe.Alias]: |
| 49 | obj = resolve_assignment_alias(obj) |
| 50 | if isinstance(obj, griffe.Alias): |
| 51 | # an import we didn't follow has no members to compare. Imports are technically part |
| 52 | # of the public API, but we don't have good preventative measures in place to prevent |
| 53 | # changing them |
| 54 | return {} |
| 55 | |
| 56 | return {name: value for name, value in obj.all_members.items() if not name.startswith("_")} |
| 57 | |
| 58 | |
| 59 | def find_breaking_changes( |
no test coverage detected