Add docutils.utils.roman (#12393)

This commit is contained in:
danieleades
2024-07-23 12:39:50 +01:00
committed by GitHub
parent 93211a8b5f
commit 08f89019c6

View File

@@ -0,0 +1,14 @@
import re
class RomanError(Exception): ...
class OutOfRangeError(RomanError): ...
class NotIntegerError(RomanError): ...
class InvalidRomanNumeralError(RomanError): ...
romanNumeralMap: tuple[tuple[str, int], ...]
def toRoman(n: int) -> str: ...
romanNumeralPattern: re.Pattern[str]
def fromRoman(s: str) -> int: ...