Skip to content

Commit

Permalink
remove unnecessary redeclaration of modifiers in example code
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidCEllis committed Apr 17, 2024
1 parent aa9d741 commit 13211a3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion docs/extension_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,6 @@ def annotated_gatherer(cls: type) -> dict[str, Any]:
if get_origin(anno) is Annotated:
typ = anno.__args__[0]
meta = anno.__metadata__
modifiers = {}
for v in meta:
if isinstance(v, FieldModifier):
modifiers.update(v.modifiers)
Expand Down
1 change: 0 additions & 1 deletion docs_code/docs_ex9_annotated.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def annotated_gatherer(cls: type) -> dict[str, Any]:
if get_origin(anno) is Annotated:
typ = anno.__args__[0]
meta = anno.__metadata__
modifiers = {}
for v in meta:
if isinstance(v, FieldModifier):
modifiers.update(v.modifiers)
Expand Down

0 comments on commit 13211a3

Please sign in to comment.