do not check attribute type for var internals (#3357)
This commit is contained in:
parent
0c0dde127f
commit
0b613d5d3b
@ -704,7 +704,11 @@ class Var:
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
var_attribute = super().__getattribute__(name)
|
var_attribute = super().__getattribute__(name)
|
||||||
if not name.startswith("_"):
|
if (
|
||||||
|
not name.startswith("_")
|
||||||
|
and name not in Var.__dict__
|
||||||
|
and name not in BaseVar.__dict__
|
||||||
|
):
|
||||||
# Check if the attribute should be accessed through the Var instead of
|
# Check if the attribute should be accessed through the Var instead of
|
||||||
# accessing one of the Var operations
|
# accessing one of the Var operations
|
||||||
type_ = types.get_attribute_access_type(
|
type_ = types.get_attribute_access_type(
|
||||||
|
Loading…
Reference in New Issue
Block a user