diff --git a/stubs/docutils/docutils/utils/roman.pyi b/stubs/docutils/docutils/utils/roman.pyi new file mode 100644 index 000000000..1595a736d --- /dev/null +++ b/stubs/docutils/docutils/utils/roman.pyi @@ -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: ...