Change is to isisntance for type checking

This commit is contained in:
Shay Nehmad 2019-10-28 16:16:05 +02:00
parent fd70ecfe29
commit f8b38d9a8d
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class Configuration(object):
val_type = type(value)
if val_type is types.FunctionType or val_type is types.MethodType:
if isinstance(val_type, types.FunctionType) or isinstance(val_type, types.MethodType):
continue
if val_type in (type, ABCMeta):