Skip to content

Commit 2349d81

Browse files
committed
Revert a return value.
Not sure why mypy tuple is okay here but Optional[tuple] is not. some return paths return None
1 parent fed3e09 commit 2349d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mathics/builtin/drawing/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def get_plotrange(self, plotrange, start, stop):
387387

388388
def process_function_and_options(
389389
self, functions, x, start, stop, evaluation: Evaluation, options: dict
390-
) -> Optional[tuple]:
390+
) -> tuple:
391391
"""Process the arguments of a plot expression."""
392392
if isinstance(functions, Symbol) and functions.name is not x.get_name():
393393
rules = evaluation.definitions.get_ownvalues(functions.name)

0 commit comments

Comments
 (0)