Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Oct 14, 2024
1 parent 8e14a21 commit 06d7c4f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/atproto_codegen/models/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,15 +509,8 @@ def _generate_xrpc_body_model(nsid: NSID, body: models.LexXrpcBody, model_type:

# here we can generate input and output model alises from the reference
# but instead we just resolve reference inplace without intermediate model

# maybe we will want to generate aliases in the future, so I leave this code here

# if model_type is ModelType.DATA:
# lines.append(f'{INPUT_MODEL} = {model_path}')
# elif model_type is ModelType.RESPONSE:
# lines.append(f'{OUTPUT_MODEL} = {model_path}')
# else:
# raise ValueError('Wrong type or not implemented')
# maybe we will want to generate aliases in the future
# so I leave this code here: https://github.com/MarshalX/atproto/pull/412
else:
raise ValueError('Wrong schema type or not implemented')
else:
Expand Down

0 comments on commit 06d7c4f

Please sign in to comment.