11import enum
22import functools
33import sys
4- from typing import Literal
5-
64from _typeshed import Incomplete
5+ from typing import Literal
76
87from .font_manager import FontProperties
98from .mathtext import MathtextBackend
1817def get_unicode_index (symbol : str , math : bool = True ) -> int : ...
1918
2019class Fonts :
21- def __init__ (
22- self , default_font_prop : FontProperties , mathtext_backend : MathtextBackend
23- ) -> None : ...
20+ def __init__ (self , default_font_prop : FontProperties , mathtext_backend : MathtextBackend ) -> None : ...
2421 def get_kern (
2522 self ,
2623 font1 ,
@@ -33,15 +30,9 @@ class Fonts:
3330 fontsize2 : float ,
3431 dpi : float ,
3532 ) -> float : ...
36- def get_metrics (
37- self , font : str , font_class : str , sym : str , fontsize : float , dpi : float
38- ) -> object : ...
39- def render_glyph (
40- self , ox : float , oy : float , font , font_class , sym , fontsize : float , dpi : float
41- ) -> None : ...
42- def render_rect_filled (
43- self , x1 : float , y1 : float , x2 : float , y2 : float
44- ) -> None : ...
33+ def get_metrics (self , font : str , font_class : str , sym : str , fontsize : float , dpi : float ) -> object : ...
34+ def render_glyph (self , ox : float , oy : float , font , font_class , sym , fontsize : float , dpi : float ) -> None : ...
35+ def render_rect_filled (self , x1 : float , y1 : float , x2 : float , y2 : float ) -> None : ...
4536 def get_xheight (self , font , fontsize : float , dpi : float ) -> float : ...
4637 def get_underline_thickness (self , font , fontsize : float , dpi : float ) -> float : ...
4738 def get_used_characters (self ): ...
@@ -166,9 +157,7 @@ class Hlist(List):
166157 do_kern : bool = True ,
167158 ) -> None : ...
168159 def kern (self ) -> None : ...
169- def hpack (
170- self , w : float = 0 , m : Literal ["exactly" , "additional" ] = "additional"
171- ) -> None : ...
160+ def hpack (self , w : float = 0 , m : Literal ["exactly" , "additional" ] = "additional" ) -> None : ...
172161
173162class Vlist (List ):
174163 def __init__ (self , elements , h = 0 , m = ...) -> None : ...
@@ -206,22 +195,16 @@ class Kern(Node):
206195 def shrink (self ) -> None : ...
207196
208197class AutoHeightChar (Hlist ):
209- def __init__ (
210- self , c , height : float , depth : float , state , always = False , factor = None
211- ) -> None : ...
198+ def __init__ (self , c , height : float , depth : float , state , always = False , factor = None ) -> None : ...
212199
213200class AutoWidthChar (Hlist ):
214- def __init__ (
215- self , c , width : float , state , always = False , char_class = Char
216- ) -> None : ...
201+ def __init__ (self , c , width : float , state , always = False , char_class = Char ) -> None : ...
217202
218203def ship (ox , oy , box ) -> None : ...
219204def Error (msg ): ...
220205
221206class ParserState :
222- def __init__ (
223- self , font_output , font , font_class , fontsize : float , dpi : float
224- ) -> None : ...
207+ def __init__ (self , font_output , font , font_class , fontsize : float , dpi : float ) -> None : ...
225208 def copy (self ) -> ParserState : ...
226209 @property
227210 def font (self ): ...
0 commit comments