Skip to content

Conversation

@sourcery-ai
Copy link

@sourcery-ai sourcery-ai bot commented Nov 13, 2023

Branch main refactored 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 main branch, then run:

git fetch origin sourcery/main
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai bot requested a review from mitgate November 13, 2023 14:35
Comment on lines -17 to -20
document = collection.find_one({"_id": pessoa_id})
if not document:
if document := collection.find_one({"_id": pessoa_id}):
return PessoaRead(**document)
else:
raise PessoaNotFoundException(pessoa_id)
return PessoaRead(**document)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function PessoasRepository.get refactored with the following changes:

e o a alias para "pessoa_id" """
document_id = data.get("_id")
if document_id:
if document_id := data.get("_id"):
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function PessoaRead._set_pessoa_id refactored with the following changes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant