Skip to content

Added functions Curry and Uncurry#6

Merged
cutenti merged 3 commits intomainfrom
7_functions_exceptions
Dec 9, 2025
Merged

Added functions Curry and Uncurry#6
cutenti merged 3 commits intomainfrom
7_functions_exceptions

Conversation

@cutenti
Copy link
Owner

@cutenti cutenti commented Dec 8, 2025

Я уже не понимаю как отсортировать и отформатировать эти импорты, мне ruff сам их даже отформатировал локально, и локально нет никаких проблем. почему здесь не проходит - я не понимаю((((

@cutenti
Copy link
Owner Author

cutenti commented Dec 8, 2025

Не проходил тест, добавила скачивание модуля hypothesis в workflows/tests.yml, непостижимым образом прошел и ruff.

Copy link

@Godrik0 Godrik0 left a comment

Choose a reason for hiding this comment

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

Очень круто что есть тесты, добавлю балл за это
Добавьте еще проверку и можно мерджить

Comment on lines +14 to +15
if arity < 0:
raise ValueError("Арность не должна быть <0")
Copy link

Choose a reason for hiding this comment

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

Не проверяется случай, когда пользователь указывает арность не соответствующую реальной.
Мы можем написать f_curry = curry(sum3, 100), ошибка появится только при вызове функции f_curry.

@cutenti cutenti force-pushed the 7_functions_exceptions branch from cf2e2d5 to 335b105 Compare December 8, 2025 22:37
@cutenti cutenti force-pushed the 7_functions_exceptions branch from 335b105 to 2f008a5 Compare December 8, 2025 22:55
@cutenti cutenti merged commit b17fbe8 into main Dec 9, 2025
2 checks passed
@cutenti cutenti deleted the 7_functions_exceptions branch December 13, 2025 22:42
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