Skip to content

Commit

Permalink
pydantic2 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benpankow committed May 23, 2024
1 parent 7101f44 commit 29f89f5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def namespace(cls) -> str:

def test_basic_tag_set_validation() -> None:
class MyValidTagSet(NamespacedTagSet):
foo: Optional[str]
bar: Optional[str]
foo: Optional[str] = None
bar: Optional[str] = None

@classmethod
def namespace(cls) -> str:
Expand All @@ -38,8 +38,8 @@ def namespace(cls) -> str:

def test_basic_tag_set_functionality() -> None:
class MyValidTagSet(NamespacedTagSet):
foo: Optional[str]
bar: Optional[str]
foo: Optional[str] = None
bar: Optional[str] = None

@classmethod
def namespace(cls) -> str:
Expand Down

0 comments on commit 29f89f5

Please sign in to comment.