Skip to content

Commit fb01c7c

Browse files
authored
Call inspectutils.GetClassAttrsDict on component, not None (#606)
* inspectutils.GetClassAttrsDict on component, not None * Remove ubuntu-20.04 in favor of ubuntu-22.04 for Python 3.7
1 parent 8527235 commit fb01c7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
os: ["macos-latest", "ubuntu-latest"]
1919
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13.0-rc.2"]
2020
include:
21-
- {os: "ubuntu-20.04", python-version: "3.7"}
21+
- {os: "ubuntu-22.04", python-version: "3.7"}
2222

2323
steps:
2424
# Checkout the repo.

fire/completion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def MemberVisible(component, name, member, class_attrs=None, verbose=False):
321321
if inspect.isclass(component):
322322
# If class_attrs has not been provided, compute it.
323323
if class_attrs is None:
324-
class_attrs = inspectutils.GetClassAttrsDict(class_attrs) or {}
324+
class_attrs = inspectutils.GetClassAttrsDict(component) or {}
325325
class_attr = class_attrs.get(name)
326326
if class_attr:
327327
# Methods and properties should only be accessible on instantiated

0 commit comments

Comments
 (0)