Skip to content

level1#2

Closed
abirukov wants to merge 1 commit intolearnpythonru:mainfrom
abirukov:level_1
Closed

level1#2
abirukov wants to merge 1 commit intolearnpythonru:mainfrom
abirukov:level_1

Conversation

@abirukov
Copy link
Copy Markdown

No description provided.



def compose_full_name(first_name: ___, last_name: ___, middle_name: ___) -> ___:
def compose_full_name(first_name: str, last_name: str, middle_name: str) -> str:
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.

Глянь внимательнее на вызовы функции, у мидл нейма не такая аннотация.



def send_email(header: ___, text_content: ___, send_to: ___) -> ___:
def send_email(header: str, text_content: str, send_to: str) -> bool | None:
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.

Непонятно, почему в возвращаемый тип затесался бул, вроде ничего на это не намекает.

@@ -1,10 +1,11 @@
import decimal
import uuid
from _decimal import 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.

Этот импорт лишний. Выше есть импорт модуля decimal, поэтому просто используй decimal.Decimal для аннотации.

@abirukov abirukov closed this Feb 16, 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