diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 59b0a4ba..75a687f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ jobs: os: ["macos-latest", "ubuntu-latest"] python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13.0-rc.2"] include: - - {os: "ubuntu-20.04", python-version: "3.7"} + - {os: "ubuntu-22.04", python-version: "3.7"} steps: # Checkout the repo. diff --git a/fire/completion.py b/fire/completion.py index 625e9d86..1597d464 100644 --- a/fire/completion.py +++ b/fire/completion.py @@ -321,7 +321,7 @@ def MemberVisible(component, name, member, class_attrs=None, verbose=False): if inspect.isclass(component): # If class_attrs has not been provided, compute it. if class_attrs is None: - class_attrs = inspectutils.GetClassAttrsDict(class_attrs) or {} + class_attrs = inspectutils.GetClassAttrsDict(component) or {} class_attr = class_attrs.get(name) if class_attr: # Methods and properties should only be accessible on instantiated