policies: fix type error

This commit is contained in:
Jens Langhammer 2020-09-14 00:28:23 +02:00
parent 69eecd6b60
commit c7026407c6
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class PolicyEngine:
def _check_policy_type(self, policy: Policy): def _check_policy_type(self, policy: Policy):
"""Check policy type, make sure it's not the root class as that has no logic implemented""" """Check policy type, make sure it's not the root class as that has no logic implemented"""
# policy_type = type(policy) # pyright: reportGeneralTypeIssues=false
if policy.__class__ == Policy: if policy.__class__ == Policy:
raise TypeError(f"Policy '{policy}' is root type") raise TypeError(f"Policy '{policy}' is root type")