diff --git a/bsc/sym.py b/bsc/sym.py index 15660e4..24b7ca1 100644 --- a/bsc/sym.py +++ b/bsc/sym.py @@ -69,7 +69,9 @@ def has_access_to(self, other): case AccessModifier.public: return True # other is public case AccessModifier.internal: - return self.get_pkg() == other.get_pkg() + if self_pkg := self.get_pkg(): + if other_pkg := other.get_pkg(): + return self_pkg == other_pkg case AccessModifier.private: if self_mod := self.get_mod(): if other_mod := other.get_mod():