Skip to content

Commit

Permalink
linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Feb 3, 2024
1 parent 6002d71 commit e3f123e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/atproto_codegen/models/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
get_def_model_name,
get_file_path_parts,
get_import_path,
get_record_model_name, join_code,
get_record_model_name,
join_code,
write_code,
)
from atproto_codegen.utils import get_code_intent as _
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def test_record_model_name_backward_compatibility() -> None:
assert issubclass(w[0].category, DeprecationWarning)

with warnings.catch_warnings(record=True) as w:

class MyModel(models.AppBskyFeedPost.Main):
pass

Expand All @@ -26,6 +27,7 @@ class MyModel(models.AppBskyFeedPost.Main):
assert len(w) == 0

with warnings.catch_warnings(record=True) as w:

class MyModel(models.AppBskyFeedPost.Record):
pass

Expand Down

0 comments on commit e3f123e

Please sign in to comment.