Skip to content

Commit

Permalink
cover ellipses case
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Aug 26, 2024
1 parent f4a09f9 commit e8ba752
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/prefect/blocks/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def _collect_secret_fields(
return

if type_ in (SecretStr, SecretBytes) or (
type_.__module__ == "pydantic.types"
isinstance(type_, type)
and getattr(type_, "__module__", None) == "pydantic.types"
and getattr(type_, "__name__", None) == "Secret"
):
secrets.append(name)
Expand Down

0 comments on commit e8ba752

Please sign in to comment.