Skip to content

Commit 85be435

Browse files
SofienM=
authored andcommitted
fix(models): make optional variables optionals
1 parent e8061b9 commit 85be435

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pygitguardian/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ def __init__(
216216
self,
217217
break_type: str,
218218
policy: str,
219-
validity: Optional[str],
220219
matches: List[Match],
220+
validity: Optional[str] = None,
221221
**kwargs: Any,
222222
) -> None:
223223
super().__init__()
@@ -482,9 +482,9 @@ class HealthCheckResponse(Base):
482482
def __init__(
483483
self,
484484
detail: str,
485-
status_code: Optional[int],
486-
app_version: Optional[str],
487-
secrets_engine_version: Optional[str],
485+
status_code: int,
486+
app_version: Optional[str] = None,
487+
secrets_engine_version: Optional[str] = None,
488488
**kwargs: Any,
489489
):
490490
super().__init__()

0 commit comments

Comments
 (0)