Skip to content

Level 2 - #3

Closed
abirukov wants to merge 3 commits into
learnpythonru:mainfrom
abirukov:level_2
Closed

Level 2#3
abirukov wants to merge 3 commits into
learnpythonru:mainfrom
abirukov:level_2

Conversation

@abirukov

Copy link
Copy Markdown

No description provided.

Comment thread level_2/10.py
def is_point_in_square(
point: tuple[int, int],
left_upper_corner: tuple[int, int],
right_bottom_corner: tuple[int, int]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Запятой не хватает в конце.

Comment thread level_2/3.py
def get_transaction_amount(transaction_id: ___, transactions_amounts_map: ___) -> ___:
def get_transaction_amount(
transaction_id: int,
transactions_amounts_map: dict[int, decimal.Decimal]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

transactions_amounts_map по логике не меняется, поэтому тут можно заменить dict на Mapping.

Так же в некоторых аннотациях ниже.

Comment thread level_2/5.py


def get_current_user() -> ___:
def get_current_user() -> tuple[str, int]:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

tuple[str, int] значит тупл из двух элементов: первай строка, второй инт. А тут не так.

@abirukov abirukov closed this Feb 18, 2023
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.

2 participants