Skip to content

Commit

Permalink
Add maxsize for lru_cache (Python 3.7 support)
Browse files Browse the repository at this point in the history
  • Loading branch information
aganders3 committed Jul 15, 2023
1 parent d3844f5 commit be32c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vispy/visuals/line/dash_atlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def make_pattern(self, pattern, caps=[1, 1]):
return _make_pattern(length, pattern, caps)


@lru_cache
@lru_cache(maxsize=32)
def _make_pattern(length, pattern, caps):
"""Make a concrete dash pattern of a given length."""
# A pattern is defined as on/off sequence of segments
Expand Down

0 comments on commit be32c99

Please sign in to comment.