File tree Expand file tree Collapse file tree 2 files changed +17
-16
lines changed Expand file tree Collapse file tree 2 files changed +17
-16
lines changed Original file line number Diff line number Diff line change 11from _typeshed import Incomplete
22from collections .abc import Generator
3+ from typing import Literal
34
45class Differ :
56 F : float
@@ -11,7 +12,7 @@ class Differ:
1112 self ,
1213 F : float | None = None ,
1314 uniqueattrs = None ,
14- ratio_mode : str = "fast" ,
15+ ratio_mode : Literal [ "accurate" , "fast" , "faster" ] = "fast" ,
1516 fast_match : bool = False ,
1617 best_match : bool = False ,
1718 ignored_attrs = [],
Original file line number Diff line number Diff line change 11from _typeshed import Incomplete
22from collections .abc import Generator
3- from typing import NamedTuple
3+ from typing import Final , NamedTuple
44
5- DIFF_NS : str
6- DIFF_PREFIX : str
7- INSERT_NAME : Incomplete
8- DELETE_NAME : Incomplete
9- REPLACE_NAME : Incomplete
10- RENAME_NAME : Incomplete
11- WS_BOTH : int
12- WS_TEXT : int
13- WS_TAGS : int
14- WS_NONE : int
15- T_OPEN : int
16- T_CLOSE : int
17- T_SINGLE : int
18- PLACEHOLDER_START : int
5+ DIFF_NS : Final [ str ]
6+ DIFF_PREFIX : Final [ str ]
7+ INSERT_NAME : Final [ Incomplete ]
8+ DELETE_NAME : Final [ Incomplete ]
9+ REPLACE_NAME : Final [ Incomplete ]
10+ RENAME_NAME : Final [ Incomplete ]
11+ WS_BOTH : Final [ int ]
12+ WS_TEXT : Final [ int ]
13+ WS_TAGS : Final [ int ]
14+ WS_NONE : Final [ int ]
15+ T_OPEN : Final [ int ]
16+ T_CLOSE : Final [ int ]
17+ T_SINGLE : Final [ int ]
18+ PLACEHOLDER_START : Final [ int ]
1919
2020class BaseFormatter :
2121 def __init__ (self , normalize = 1 , pretty_print : bool = False ) -> None : ...
You can’t perform that action at this time.
0 commit comments