Skip to content

Commit

Permalink
flycheck lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Dec 17, 2024
1 parent 03ff9fd commit eda34e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 3 additions & 4 deletions mathics/builtin/box/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"""
Boxing Symbols for 2D Graphics
"""
# Docs are not yet ready for prime time. Maybe after release 6.0.0.
no_doc = True


from math import atan2, ceil, cos, degrees, floor, log10, pi, sin
from typing import Optional

Expand Down Expand Up @@ -43,6 +39,9 @@
from mathics.core.systemsymbols import SymbolAutomatic, SymbolTraditionalForm
from mathics.eval.makeboxes import format_element

# Docs are not yet ready for prime time. Maybe after release 6.0.0.
no_doc = True

SymbolRegularPolygonBox = Symbol("RegularPolygonBox")
SymbolStandardForm = Symbol("StandardForm")

Expand Down
7 changes: 4 additions & 3 deletions mathics/builtin/drawing/graphics_internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
# No external builtins appear here.
# Also no docstring which may confuse the doc system

from abc import ABC

from mathics.builtin.box.expression import BoxExpression
from mathics.core.builtin import BuiltinElement
from mathics.core.exceptions import BoxExpressionError
from mathics.core.symbols import Symbol, system_symbols_dict

# Signals to Mathics doc processing not to include this module in its documentation.
# Signals to Mathics3 doc processing not to include this module in its documentation.
no_doc = True


class _GraphicsDirective(BuiltinElement):
class _GraphicsDirective(BuiltinElement, ABC):
def init(self, graphics, item=None):
if item is not None and not item.has_form(self.get_name(), None):
raise BoxExpressionError
Expand All @@ -24,7 +25,7 @@ def create_as_style(klass, graphics, item):
return klass(graphics, item)


class _GraphicsElementBox(BoxExpression):
class _GraphicsElementBox(BoxExpression, ABC):
def init(self, graphics, item=None, style=None, opacity=1.0):
if item is not None and not item.has_form(self.get_name(), None):
raise BoxExpressionError
Expand Down

0 comments on commit eda34e5

Please sign in to comment.