neutral_tone.pyi 518 B

123456789101112131415161718
  1. # -*- coding: utf-8 -*-
  2. from typing import Any
  3. from typing import Optional
  4. from typing import Text
  5. from typing import Tuple
  6. from pypinyin.constants import Style
  7. TStyle = Style
  8. class NeutralToneWith5Mixin(object):
  9. NUMBER_TONE = ... # type: Tuple[TStyle]
  10. NUMBER_AT_END = ... # type: Tuple[TStyle]
  11. def post_convert_style(self, han: Text, orig_pinyin: Text,
  12. converted_pinyin: Text, style: TStyle,
  13. strict: bool, **kwargs: Any) -> Optional[Text]: ...