Skip to content

Commit

Permalink
Linter fix (#421)
Browse files Browse the repository at this point in the history
* bump version

* Define vars for linter
  • Loading branch information
tushar5526 authored Feb 20, 2023
1 parent 4c63a4f commit 8f4777b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion p5/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
__title__ = "p5"
__description__ = "Creative coding in Python"
__url__ = "https://p5py.github.io"
__version__ = "0.8.1"
__version__ = "0.8.2"
__author__ = "Abhik Pal"
__author_email__ = "[email protected]"
__license__ = " GNU GPLv3"
Expand Down
4 changes: 4 additions & 0 deletions p5/core/primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,8 @@ def rect(*args, mode=None):
return quad(p1, p2, p3, p4)

elif builtins.current_renderer == "skia":
# TODO: Add proper parameter handling
x = y = w = h = None
if len(args) == 4:
x, y, w, h = args
elif len(args) == 3:
Expand Down Expand Up @@ -527,6 +529,8 @@ def square(*args, mode=None):
raise ValueError("Cannot draw square with {} mode".format(mode))
return rect(coordinate, side_length, side_length, mode=mode)
elif builtins.current_renderer == "skia":
# TODO: Add proper parameter handling
x = y = side = None
if should_draw():
if len(args) == 2:
x, y = args[0]
Expand Down

0 comments on commit 8f4777b

Please sign in to comment.