Skip to content

Commit

Permalink
Test removing default types
Browse files Browse the repository at this point in the history
  • Loading branch information
daquinteroflex committed Aug 8, 2024
1 parent 61966a9 commit b22b243
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tidy3d/components/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,8 +1089,7 @@ def generate_docstring(cls) -> str:
default_val = field.get_default()
if "=" in str(default_val):
# handle cases where default values are pydantic models
default_val = f"{default_val.__class__.__name__}({default_val})"
default_val = (", ").join(default_val.split(" "))
default_val = f"{default_val.__class__.__name__}"

# make first line: name : type = default
default_str = "" if field.required else f" = {default_val}"
Expand Down

0 comments on commit b22b243

Please sign in to comment.