Remove redundant union type when resolving condition lingo.

pull/3145/head
derekpierre 2023-06-14 19:45:39 -04:00
parent b0dd6ac569
commit f9df0fa0ca
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import ast
import base64 import base64
import operator as pyoperator import operator as pyoperator
from hashlib import md5 from hashlib import md5
from typing import Any, List, Optional, Tuple from typing import Any, List, Optional, Tuple, Type
from marshmallow import ( from marshmallow import (
Schema, Schema,
@ -312,7 +312,7 @@ class ConditionLingo(_Serializable):
@classmethod @classmethod
def resolve_condition_class( def resolve_condition_class(
cls, condition: ConditionDict, version: int = None cls, condition: ConditionDict, version: int = None
) -> Union[Type[CompoundAccessControlCondition], Type[AccessControlCondition]]: ) -> Type[AccessControlCondition]:
""" """
TODO: This feels like a jenky way to resolve data types from JSON blobs, but it works. TODO: This feels like a jenky way to resolve data types from JSON blobs, but it works.
Inspects a given bloc of JSON and attempts to resolve it's intended datatype within the Inspects a given bloc of JSON and attempts to resolve it's intended datatype within the