mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 05:41:11 +08:00
Add docutils.utils.roman (#12393)
This commit is contained in:
14
stubs/docutils/docutils/utils/roman.pyi
Normal file
14
stubs/docutils/docutils/utils/roman.pyi
Normal 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: ...
|
||||
Reference in New Issue
Block a user