Skip to content

Commit 8f4777b

Browse files
authored
Linter fix (#421)
* bump version * Define vars for linter
1 parent 4c63a4f commit 8f4777b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

p5/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
__title__ = "p5"
2020
__description__ = "Creative coding in Python"
2121
__url__ = "https://p5py.github.io"
22-
__version__ = "0.8.1"
22+
__version__ = "0.8.2"
2323
__author__ = "Abhik Pal"
2424
__author_email__ = "[email protected]"
2525
__license__ = " GNU GPLv3"

p5/core/primitives.py

+4
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ def rect(*args, mode=None):
467467
return quad(p1, p2, p3, p4)
468468

469469
elif builtins.current_renderer == "skia":
470+
# TODO: Add proper parameter handling
471+
x = y = w = h = None
470472
if len(args) == 4:
471473
x, y, w, h = args
472474
elif len(args) == 3:
@@ -527,6 +529,8 @@ def square(*args, mode=None):
527529
raise ValueError("Cannot draw square with {} mode".format(mode))
528530
return rect(coordinate, side_length, side_length, mode=mode)
529531
elif builtins.current_renderer == "skia":
532+
# TODO: Add proper parameter handling
533+
x = y = side = None
530534
if should_draw():
531535
if len(args) == 2:
532536
x, y = args[0]

0 commit comments

Comments
 (0)