Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitedce71d

Browse files
committed
Remove dead code from Auto{Height,Width}Char
1 parent00d5cb6 commitedce71d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎lib/matplotlib/_mathtext.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ class AutoHeightChar(Hlist):
15241524
"""
15251525

15261526
def__init__(self,c:str,height:float,depth:float,state:ParserState,
1527-
always:bool=False,factor:float|None=None):
1527+
factor:float|None=None):
15281528
alternatives=state.fontset.get_sized_alternatives_for_symbol(
15291529
state.font,c)
15301530

@@ -1563,7 +1563,7 @@ class AutoWidthChar(Hlist):
15631563
always just return a scaled version of the glyph.
15641564
"""
15651565

1566-
def__init__(self,c:str,width:float,state:ParserState,always:bool=False,
1566+
def__init__(self,c:str,width:float,state:ParserState,
15671567
char_class:type[Char]=Char):
15681568
alternatives=state.fontset.get_sized_alternatives_for_symbol(
15691569
state.font,c)
@@ -2712,7 +2712,7 @@ def sqrt(self, toks: ParseResults) -> T.Any:
27122712
# the height so it doesn't seem cramped
27132713
height=body.height-body.shift_amount+thickness*5.0
27142714
depth=body.depth+body.shift_amount
2715-
check=AutoHeightChar(r'\__sqrt__',height,depth,state,always=True)
2715+
check=AutoHeightChar(r'\__sqrt__',height,depth,state)
27162716
height=check.height-check.shift_amount
27172717
depth=check.depth+check.shift_amount
27182718

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp