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)
|
self._save_metrics(self.summary)
|
||||||
|
|
||||||
def _is_numeric(self, variable):
|
def _is_numeric(self, variable):
|
||||||
if (
|
if isinstance(variable, (int, float, complex)):
|
||||||
isinstance(variable, int) or
|
|
||||||
isinstance(variable, float) or
|
|
||||||
isinstance(variable, complex)
|
|
||||||
):
|
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue