|
6 | 6 | import re
|
7 | 7 | from enum import StrEnum, auto
|
8 | 8 | from functools import cached_property
|
9 |
| -from typing import TYPE_CHECKING, Annotated, Any, Literal, Optional, Self |
| 9 | +from typing import TYPE_CHECKING, Annotated, Any, Literal, Self |
10 | 10 |
|
11 | 11 | from pydantic import (
|
12 | 12 | Field,
|
@@ -69,10 +69,13 @@ class Lookup_Type(StrEnum):
|
69 | 69 |
|
70 | 70 | # TODO (#220): Split Lookup into 2 classes
|
71 | 71 | class Lookup(SecurityContentObject, abc.ABC):
|
72 |
| - default_match: str = Field(default='', description="This field is given a default value of ''" |
73 |
| - "because it is the default value specified in the transforms.conf " |
74 |
| - "docs. Giving it a type of str rather than str | None simplifies " |
75 |
| - "the typing for the field.") |
| 72 | + default_match: str = Field( |
| 73 | + default="", |
| 74 | + description="This field is given a default value of ''" |
| 75 | + "because it is the default value specified in the transforms.conf " |
| 76 | + "docs. Giving it a type of str rather than str | None simplifies " |
| 77 | + "the typing for the field.", |
| 78 | + ) |
76 | 79 | # Per the documentation for transforms.conf, EXACT should not be specified in this list,
|
77 | 80 | # so we include only WILDCARD and CIDR
|
78 | 81 | match_type: list[Annotated[str, Field(pattern=r"(^WILDCARD|CIDR)\(.+\)$")]] = Field(
|
|
0 commit comments