Sourcery refactored main branch - #1
Conversation
|
|
| output = self.output or [] | ||
| new_output = output[len(previous_output) :] | ||
| yield from new_output | ||
| yield from output[len(previous_output) :] |
There was a problem hiding this comment.
Function Prediction.output_iterator refactored with the following changes:
- Inline variable that is immediately yielded [×2] (
inline-immediately-yielded-variable) - Replace yield inside for loop with yield from (
yield-from)
| schema = self.openapi_schema | ||
| schema = make_schema_backwards_compatible(schema, self.cog_version) | ||
| return schema | ||
| return make_schema_backwards_compatible(schema, self.cog_version) |
There was a problem hiding this comment.
Function Version.get_transformed_schema refactored with the following changes:
- Inline variable that is immediately returned (
inline-immediately-returned-variable)
| def create_client(): | ||
| client = Client(api_token="abc123") | ||
| return client | ||
| return Client(api_token="abc123") |
There was a problem hiding this comment.
Function create_client refactored with the following changes:
- Inline variable that is immediately returned (
inline-immediately-returned-variable)
|
Branch
mainrefactored by Sourcery.If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.
See our documentation here.
Run Sourcery locally
Reduce the feedback loop during development by using the Sourcery editor plugin:
Review changes via command line
To manually merge these changes, make sure you're on the
mainbranch, then run:Help us improve this pull request!