Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warnings were removed #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

warnings were removed #7

wants to merge 1 commit into from

Conversation

777RND777
Copy link

Убрал warning-и PyCharm

В методе _parse_message переменная amount была типа str, а должна была быть int. При передаче ее через NamedTuple Message в NamedTuple Expense, а затем в функцию insert она все еще оставалась типа str. Однако при методе executemany сложение в базе данных происходило правильно. Как так, если формат был неверен? Библиотека sqllite3 автоматически перевела в нужный тип?

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