Skip to content

Commit

Permalink
Shut up pyright complaining about implicit override in some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mysteryem committed Jan 29, 2025
1 parent 7033bb1 commit f47de90
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/general/test_groups.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from typing import override
from unittest import TestCase

from worlds.AutoWorld import AutoWorldRegister
Expand All @@ -7,6 +8,7 @@
class TestNameGroups(TestCase):

@classmethod
@override
def setUpClass(cls):
super().setUpClass()
ensure_worlds_loaded()
Expand Down
2 changes: 2 additions & 0 deletions test/general/test_memory.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from typing import override
import unittest

from BaseClasses import MultiWorld
Expand All @@ -9,6 +10,7 @@
class TestWorldMemory(unittest.TestCase):

@classmethod
@override
def setUpClass(cls):
super().setUpClass()
ensure_worlds_loaded()
Expand Down
2 changes: 2 additions & 0 deletions test/general/test_names.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from typing import override
import unittest
from worlds.AutoWorld import AutoWorldRegister
from worlds import ensure_worlds_loaded


class TestNames(unittest.TestCase):
@classmethod
@override
def setUpClass(cls):
super().setUpClass()
ensure_worlds_loaded()
Expand Down
3 changes: 2 additions & 1 deletion test/multiworld/test_multiworlds.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from typing import List, Tuple
from typing import List, Tuple, override
from unittest import TestCase

from BaseClasses import CollectionState, Location, MultiWorld
Expand All @@ -13,6 +13,7 @@
class MultiworldTestBase(TestCase):

@classmethod
@override
def setUpClass(cls):
super().setUpClass()
ensure_worlds_loaded()
Expand Down
2 changes: 2 additions & 0 deletions test/webhost/test_descriptions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from typing import override
import unittest

from worlds.AutoWorld import AutoWorldRegister
Expand All @@ -7,6 +8,7 @@
class TestWebDescriptions(unittest.TestCase):

@classmethod
@override
def setUpClass(cls):
super().setUpClass()
ensure_worlds_loaded()
Expand Down

0 comments on commit f47de90

Please sign in to comment.