Skip to content

Commit

Permalink
remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
pyth0n1c committed Feb 13, 2025
1 parent a796dbf commit 39ce6bd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions contentctl/objects/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import re
from enum import StrEnum, auto
from functools import cached_property
from typing import TYPE_CHECKING, Annotated, Any, Literal, Optional, Self
from typing import TYPE_CHECKING, Annotated, Any, Literal, Self

from pydantic import (
Field,
Expand Down Expand Up @@ -69,10 +69,13 @@ class Lookup_Type(StrEnum):

# TODO (#220): Split Lookup into 2 classes
class Lookup(SecurityContentObject, abc.ABC):
default_match: str = Field(default='', description="This field is given a default value of ''"
"because it is the default value specified in the transforms.conf "
"docs. Giving it a type of str rather than str | None simplifies "
"the typing for the field.")
default_match: str = Field(
default="",
description="This field is given a default value of ''"
"because it is the default value specified in the transforms.conf "
"docs. Giving it a type of str rather than str | None simplifies "
"the typing for the field.",
)
# Per the documentation for transforms.conf, EXACT should not be specified in this list,
# so we include only WILDCARD and CIDR
match_type: list[Annotated[str, Field(pattern=r"(^WILDCARD|CIDR)\(.+\)$")]] = Field(
Expand Down

0 comments on commit 39ce6bd

Please sign in to comment.