File: baseclass.pyi

package info (click to toggle)
python-precis-i18n 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,916 kB
  • sloc: python: 1,824; sh: 28; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from typing import NoReturn, Optional, Tuple

from precis_i18n.unicode import UnicodeData

class BaseClass:
    ucd: UnicodeData
    name: str

    def __init__(self, ucd: UnicodeData, name: str = ...) -> None: ...
    def enforce(self, value: str, codec_name: Optional[str] = ...) -> str: ...

class IdentifierClass(BaseClass):
    _allowed: Tuple[str]

class FreeFormClass(BaseClass):
    _allowed: Tuple[str, str]

def raise_error(encoding: str, value: str, offset: int, error: str) -> NoReturn: ...