@@ -149,7 +149,6 @@ def count(self, result_id: str, desc: str) -> tuple[int, bool]:
149149 Returns:
150150 Current count for given result_id.
151151 """
152- assert isinstance (result_id , str )
153152 self ._count [result_id ] += 1
154153 initial = False
155154 if result_id not in self ._desc :
@@ -166,7 +165,6 @@ def get(self, result_id: str) -> ResultEntry:
166165 Returns:
167166 ResultEntry: Count and description.
168167 """
169- assert isinstance (result_id , str )
170168 return ResultEntry (
171169 result_id , self ._count .get (result_id , 0 ), self ._desc .get (result_id , None )
172170 )
@@ -345,7 +343,6 @@ def is_frequent(self, result_id: str) -> bool:
345343 Returns:
346344 True if limit has been exceeded otherwise False.
347345 """
348- assert isinstance (result_id , str )
349346 if self ._limit < 1 :
350347 return False
351348 if result_id in self ._frequent :
@@ -381,7 +378,6 @@ def mark_frequent(self, result_id: str) -> None:
381378 Returns:
382379 None
383380 """
384- assert isinstance (result_id , str )
385381 if result_id not in self ._frequent :
386382 self ._frequent .add (result_id )
387383
@@ -709,7 +705,6 @@ def record(self, name: str, duration: float) -> None:
709705 None
710706 """
711707 if self ._enable_profiling :
712- assert isinstance (duration , (float , int ))
713708 try :
714709 self ._profiles [name ]["count" ] += 1
715710 if self ._profiles [name ]["max" ] < duration :
0 commit comments