Skip to content

Comments

Исправлены замечания ревью 1,2,4#200

Merged
Potatoes3212 merged 3 commits intomainfrom
fix/auth-to-depends
Aug 2, 2025
Merged

Исправлены замечания ревью 1,2,4#200
Potatoes3212 merged 3 commits intomainfrom
fix/auth-to-depends

Conversation

@Potatoes3212
Copy link
Collaborator

  1. В либу авторизации добавлена функция, получения user_id: get_current_user_id
  2. Удалено значение переменной по умолчанию Переменная
  3. В mypy добавлена проверка типизации контейнеров (dict[str, int])

Copy link
Collaborator

@Kirill67tyar Kirill67tyar left a comment

Choose a reason for hiding this comment

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

всё круто, хорошая шпаргалка для аннотаций, чтобы подсмотреть, как правильно)


class NotificationRepository(BaseRepository): # noqa: WPS214
class NotificationRepository(BaseRepository[Notification | MassNotification]): # noqa: WPS214

Copy link
Collaborator

Choose a reason for hiding this comment

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

Прикольно, не знал, что так тоже можно: some_type[some_t1 | some_t2]

for message in messages:
if message.value is not None:
task = self._safe_message_handler(
for message in messages: # noqa: WPS220
Copy link
Collaborator

Choose a reason for hiding this comment

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

Правильно ли я понимаю, что # noqa: WPS220 из-за слишком глубокой вложенности?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Да. На это ругается. Надо будет переписать. Записал TODO выше.

@taaylor taaylor self-requested a review August 2, 2025 15:07
Copy link
Owner

@taaylor taaylor left a comment

Choose a reason for hiding this comment

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

Все круто! Спасибо

@Potatoes3212 Potatoes3212 merged commit a98c6d6 into main Aug 2, 2025
5 checks passed
@Potatoes3212 Potatoes3212 deleted the fix/auth-to-depends branch August 2, 2025 18:38
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.

3 participants