8000 Simplify match expression · matplotlib/matplotlib@53355ca · GitHub
[go: up one dir, main page]

Skip to content

Commit 53355ca

Browse files
jkseppanQuLogic
andcommitted
Simplify match expression
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent 22198e9 commit 53355ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/_type1font.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ def run(self, glyph_or_subr):
10491049
def _step(self, opcode):
10501050
"""Run one step in the charstring interpreter."""
10511051
match opcode:
1052-
case _ if isinstance(opcode, int):
1052+
case int():
10531053
self.buildchar_stack.append(opcode)
10541054
case (
10551055
'hsbw' | 'sbw' | 'closepath' | 'hlineto' | 'hmoveto' | 'hcurveto' |

0 commit comments

Comments
 (0)
0