Skip to content

Commit 08f8901

Browse files
authored
Add docutils.utils.roman (#12393)
1 parent 93211a8 commit 08f8901

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import re
2+
3+
class RomanError(Exception): ...
4+
class OutOfRangeError(RomanError): ...
5+
class NotIntegerError(RomanError): ...
6+
class InvalidRomanNumeralError(RomanError): ...
7+
8+
romanNumeralMap: tuple[tuple[str, int], ...]
9+
10+
def toRoman(n: int) -> str: ...
11+
12+
romanNumeralPattern: re.Pattern[str]
13+
14+
def fromRoman(s: str) -> int: ...

0 commit comments

Comments
 (0)