reduce is_numeric
This commit is contained in:
parent
efc74fcb47
commit
46643e61ef
1 changed files with 1 additions and 5 deletions
|
@ -84,11 +84,7 @@ class GetYoutubeVideos:
|
|||
self._save_metrics(self.summary)
|
||||
|
||||
def _is_numeric(self, variable):
|
||||
if (
|
||||
isinstance(variable, int) or
|
||||
isinstance(variable, float) or
|
||||
isinstance(variable, complex)
|
||||
):
|
||||
if isinstance(variable, (int, float, complex)):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in a new issue