MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / public_members

Function public_members

scripts/detect-breaking-changes.py:48–56  ·  view source on GitHub ↗
(obj: griffe.Object | griffe.Alias)

Source from the content-addressed store, hash-verified

46
47
48def 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
59def find_breaking_changes(

Callers 1

find_breaking_changesFunction · 0.70

Calls 1

resolve_assignment_aliasFunction · 0.85

Tested by

no test coverage detected