Skip to content

Commit 0cf9492

Browse files
committed
Improved type hints.
1 parent 878031f commit 0cf9492

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

tests/platform/Specific.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,55 +44,55 @@
4444

4545
class PlatformTesting(TestCase):
4646
@mark.skipif(not CurrentPlatform.IsNativeLinux, reason="Skipped, if current platform isn't native Linux.")
47-
def test_ApplicationOnNativeLinux(self):
47+
def test_ApplicationOnNativeLinux(self) -> None:
4848
app = Application()
4949

5050
self.assertEqual(1, app.Value)
5151

5252
@mark.skipif(not CurrentPlatform.IsNativeMacOS, reason="Skipped, if current platform isn't native macOS.")
53-
def test_ApplicationOnNativeMacOS(self):
53+
def test_ApplicationOnNativeMacOS(self) -> None:
5454
app = Application()
5555

5656
self.assertEqual(2, app.Value)
5757

5858
@mark.skipif(not CurrentPlatform.IsNativeWindows, reason="Skipped, if current platform isn't native Windows.")
59-
def test_ApplicationOnNativeWindows(self):
59+
def test_ApplicationOnNativeWindows(self) -> None:
6060
app = Application()
6161

6262
self.assertEqual(3, app.Value)
6363

6464
@mark.skipif(not CurrentPlatform.IsMSYSOnWindows, reason="Skipped, if current platform isn't MSYS on Windows.")
65-
def test_ApplicationOnMSYS2OnWindows(self):
65+
def test_ApplicationOnMSYS2OnWindows(self) -> None:
6666
app = Application()
6767

6868
self.assertEqual(11, app.Value)
6969

7070
@mark.skipif(not CurrentPlatform.IsMinGW32OnWindows, reason="Skipped, if current platform isn't MinGW32 on Windows.")
71-
def test_ApplicationOnMinGW32OnWindows(self):
71+
def test_ApplicationOnMinGW32OnWindows(self) -> None:
7272
app = Application()
7373

7474
self.assertEqual(12, app.Value)
7575

7676
@mark.skipif(not CurrentPlatform.IsMinGW64OnWindows, reason="Skipped, if current platform isn't MinGW64 on Windows.")
77-
def test_ApplicationOnMinGW64OnWindows(self):
77+
def test_ApplicationOnMinGW64OnWindows(self) -> None:
7878
app = Application()
7979

8080
self.assertEqual(13, app.Value)
8181

8282
@mark.skipif(not CurrentPlatform.IsUCRT64OnWindows, reason="Skipped, if current platform isn't UCRT64 on Windows.")
83-
def test_ApplicationOnURTC64OnWindows(self):
83+
def test_ApplicationOnURTC64OnWindows(self) -> None:
8484
app = Application()
8585

8686
self.assertEqual(14, app.Value)
8787

8888
@mark.skipif(not CurrentPlatform.IsClang32OnWindows, reason="Skipped, if current platform isn't Clang32 on Windows.")
89-
def test_ApplicationOnClang32OnWindows(self):
89+
def test_ApplicationOnClang32OnWindows(self) -> None:
9090
app = Application()
9191

9292
self.assertEqual(15, app.Value)
9393

9494
@mark.skipif(not CurrentPlatform.IsClang64OnWindows, reason="Skipped, if current platform isn't Clang64 on Windows.")
95-
def test_ApplicationOnClang64OnWindows(self):
95+
def test_ApplicationOnClang64OnWindows(self) -> None:
9696
app = Application()
9797

9898
self.assertEqual(16, app.Value)

tests/unit/AppInit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535

3636
class Instantiation(TestCase):
37-
def test_Application(self):
37+
def test_Application(self) -> None:
3838
app = Application()
3939

4040
self.assertGreater(app.Value, 0)

0 commit comments

Comments
 (0)