We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddd4321 commit d48a3d2Copy full SHA for d48a3d2
bpython/repl.py
@@ -586,12 +586,11 @@ def current_string(self, concatenate=False):
586
return ""
587
return "".join(string)
588
589
- def get_object(self, name):
+ def get_object(self, name: str) -> Any:
590
attributes = name.split(".")
591
obj = eval(attributes.pop(0), cast(Dict[str, Any], self.interp.locals))
592
while attributes:
593
- with inspection.AttrCleaner(obj):
594
- obj = getattr(obj, attributes.pop(0))
+ obj = inspection.getattr_safe(obj, attributes.pop(0))
595
return obj
596
597
@classmethod
0 commit comments