Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanhphan1147 committed Nov 9, 2023
1 parent 096983e commit 3025272
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ def __init__(self, msg: str = ""):


class Validator(BaseModel):
"""Pydantic validator wrapper class for various attributes
"""Pydantic validator wrapper class for various attributes.
Attrs:
http_url_validator: assign a value to this attribute to validate it against pydantic's AnyHttpUrl type
http_url_validator: assign a value to this attribute to validate it against pydantic's AnyHttpUrl type.
"""

http_url_validator: AnyHttpUrl
Expand All @@ -61,13 +61,13 @@ class JenkinsConfig(BaseModel):

@validator("server_url")
def valid_http_url(cls, server_url: str):
"""Pydantic validator for server_url attribute in jenkins' config
"""Pydantic validator for server_url attribute in jenkins' config.
Args:
server_url: the server_url attribute to validate
server_url: the server_url attribute to validate.
Returns:
the validated server_url attribute
the validated server_url attribute.
"""

_ = Validator(http_url_validator = server_url)
Expand Down

0 comments on commit 3025272

Please sign in to comment.