Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/matplotlib/_mathtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from __future__ import annotations

import abc
import copy
import enum
import functools
import logging
Expand Down Expand Up @@ -1768,7 +1767,7 @@ def __init__(self, fontset: Fonts, font: str, font_class: str, fontsize: float,
self.dpi = dpi

def copy(self) -> ParserState:
return copy.copy(self)
return ParserState(self.fontset, self._font, self.font_class, self.fontsize, self.dpi)

@property
def font(self) -> str:
Expand Down