policies: fix type error

This commit is contained in:
Jens Langhammer 2020-09-14 00:28:23 +02:00
parent 69eecd6b60
commit c7026407c6

View file

@ -68,7 +68,7 @@ class PolicyEngine:
def _check_policy_type(self, policy: Policy):
"""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:
raise TypeError(f"Policy '{policy}' is root type")