Skip to content

Commit

Permalink
Ignore ENUM typing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Dec 19, 2023
1 parent 124e0cf commit fb94819
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions tap_hookdeck/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@
),
th.Property(
"http_method",
th.StringType(allowed_values=[None, "GET", "POST", "PUT", "PATCH", "DELETE"]),
th.StringType(
allowed_values=[
None, # type: ignore[list-item]
"GET",
"POST",
"PUT",
"PATCH",
"DELETE",
]
),
),
th.Property("auth_method", th.ObjectType()),
th.Property("archived_at", th.DateTimeType),
Expand All @@ -40,7 +49,18 @@
th.Property("verification", th.ObjectType()),
th.Property(
"allowed_http_methods",
th.ArrayType(th.StringType(allowed_values=[None, "GET", "POST", "PUT", "PATCH", "DELETE"])),
th.ArrayType(
th.StringType(
allowed_values=[
None, # type: ignore[list-item]
"GET",
"POST",
"PUT",
"PATCH",
"DELETE",
]
)
),
),
th.Property(
"custom_response",
Expand Down Expand Up @@ -225,7 +245,7 @@ class Requests(HookdeckStream):
"rejection_cause",
th.StringType(
allowed_values=[
None,
None, # type: ignore[list-item]
"SOURCE_ARCHIVED",
"NO_WEBHOOK",
"VERIFICATION_FAILED",
Expand Down

0 comments on commit fb94819

Please sign in to comment.