Skip to content

Commit

Permalink
chore(pre-commit.ci): auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 7, 2023
1 parent e79a23d commit c287ac2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/test_generation/test_partial_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,13 @@ def generator() -> None: # mark: filedef

User.create_partial('UserOnlyName', include={'name'})

Post.create_partial('PostWithoutDesc', exclude=['desc']) # pyright: ignore
Post.create_partial(
'PostWithoutDesc', exclude=['desc']
) # pyright: ignore
Post.create_partial('PostOptionalPublished', optional=['published'])
Post.create_partial('PostRequiredDesc', required=['desc']) # pyright: ignore
Post.create_partial(
'PostRequiredDesc', required=['desc']
) # pyright: ignore
Post.create_partial('PostOnlyId', include={'id'})
Post.create_partial(
'PostOptionalInclude', include={'title'}, optional={'title'}
Expand All @@ -339,7 +343,9 @@ def generator() -> None: # mark: filedef
exclude={'bytes', 'bytes_list'}, # pyright: ignore
relations={'posts': 'PostOnlyId'},
)
User.create_partial('UserBytesList', include={'bytes', 'bytes_list'}) # pyright: ignore
User.create_partial(
'UserBytesList', include={'bytes', 'bytes_list'}
) # pyright: ignore

testdir.make_from_function(generator, name=location)
testdir.generate(SCHEMA, options)
Expand Down

0 comments on commit c287ac2

Please sign in to comment.