Skip to content

Refactor/update numeral#74

Merged
last-partizan merged 3 commits intolast-partizan:masterfrom
mamedoval:refactor/update_numeral
Jul 27, 2025
Merged

Refactor/update numeral#74
last-partizan merged 3 commits intolast-partizan:masterfrom
mamedoval:refactor/update_numeral

Conversation

@mamedoval
Copy link
Contributor

No description provided.

@last-partizan last-partizan requested a review from Copilot July 27, 2025 15:25
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the numeral module to improve type safety and code consistency by replacing magic numbers with named constants and enhancing type annotations.

  • Introduces FORMS_COUNT constant to replace magic number 3
  • Replaces hardcoded gender values (1, 2) with named constants (MALE, FEMALE)
  • Removes unused parameter _gender from in_words_float function
  • Improves type annotations and adds type casting for better type safety

@last-partizan last-partizan merged commit 6b928ad into last-partizan:master Jul 27, 2025
7 checks passed
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