diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -8,7 +8,5 @@
 
 
 class Solution:
-    def thirdMax(self, nums) -> int:
-        return (
-            self.max(list(set(nums))) if len(list(set(nums))) < 3 else sorted(list(set(nums)))[-3]
-        )
+    def thirdMax(self, nums: List[int]) -> int:
+        return max(list(set(nums))) if len(list(set(nums))) < 3 else sorted(list(set(nums)))[-3]
