Skip to content

Commit d41a7ec

Browse files
committed
Fix UP004 (Class Foo inherits from object)
ruff check --select=UP004 --fix
1 parent 11e20b1 commit d41a7ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

subprojects/pyntcore/tests/test_util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828

2929
def test_ntproperty(nt: NetworkTableInstance):
30-
class Foo(object):
30+
class Foo:
3131
robotTime = ntproperty(
3232
"/SmartDashboard/robotTime", 0.0, writeDefault=False, inst=nt
3333
)
@@ -85,14 +85,14 @@ class Foo(object):
8585
def test_ntproperty_emptyarray(nt: NetworkTableInstance):
8686
with pytest.raises(TypeError):
8787

88-
class Foo1(object):
88+
class Foo1:
8989
testArray = ntproperty(
9090
"/SmartDashboard/testArray", [], writeDefault=True, inst=nt
9191
)
9292

9393
with pytest.raises(TypeError):
9494

95-
class Foo2(object):
95+
class Foo2:
9696
testArray = ntproperty(
9797
"/SmartDashboard/testArray", [], writeDefault=False, inst=nt
9898
)
@@ -106,7 +106,7 @@ def test_ntproperty_multitest(nt: NetworkTableInstance):
106106
pyfrc tests
107107
"""
108108

109-
class Foo(object):
109+
class Foo:
110110
robotTime = ntproperty(
111111
"/SmartDashboard/robotTime", 0.0, writeDefault=False, inst=nt
112112
)

0 commit comments

Comments
 (0)