Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lowercase some RomanNumeral figures created with integers #1481

Merged
merged 3 commits into from
Nov 20, 2022

Conversation

jacobtylerwalls
Copy link
Member

Closes #1450

Previously, RomanNumerals created with integer figures were always uppercase, even when caseMatters was True.

Now, certain figures are lowercased according to the mode.


cc/ @MarkGotham would you be willing to review?

I didn't use structural pattern matching per this comment:

# remove Jetbrains "noinspection PyTypeChecker" when
# https://youtrack.jetbrains.com/issue/PY-48011/Pattern-Matching-Type-inference
# is fixed. Until then, don't implement more Structural Pattern Matching.

@coveralls
Copy link

coveralls commented Nov 19, 2022

Coverage Status

Coverage increased (+0.003%) to 93.077% when pulling 80a8ba9 on jacobtylerwalls:int-case-matters into 6c1e570 on cuthbertLab:master.

Copy link
Member

@mscuthbert mscuthbert left a comment

Choose a reason for hiding this comment

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

Looks great to me, good approach.

music21/roman.py Outdated
Comment on lines 4405 to 4406
'''https://github.com/cuthbertLab/music21/issues/1450'''
minorKeyObj = key.Key("c")
Copy link
Member

Choose a reason for hiding this comment

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

trying to standardize docstrings as always like:

'''
adfahdfkladf
'''

even if a one-liner.

The linter should be catching the double quote "c" -- not sure why not here.

@jacobtylerwalls jacobtylerwalls merged commit b274aa5 into cuthbertLab:master Nov 20, 2022
@jacobtylerwalls jacobtylerwalls deleted the int-case-matters branch November 20, 2022 14:19
@jacobtylerwalls
Copy link
Member Author

Thanks, Myke. Feel free to unpin mypy later, of course!

MarkGotham added a commit to MarkGotham/music21 that referenced this pull request Dec 7, 2022
MarkGotham added a commit to MarkGotham/music21 that referenced this pull request Dec 7, 2022
mscuthbert added a commit that referenced this pull request Dec 7, 2022
adds doc for RN from int, following #1481
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.

Major/minor distinction in roman.RomanNumeral from degree
3 participants