Skip to content

Commit

Permalink
Check for derived types for configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nadavge authored Mar 4, 2024
1 parent 29b1f94 commit 00a7c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dateparser/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def check_settings(settings):
setting_props = settings_values[setting_name]

# check type:
if not setting_type == setting_props["type"]:
if not isinstance(setting_type, setting_props["type"]):
raise SettingValidationError(
'"{}" must be "{}", not "{}".'.format(
setting_name, setting_props["type"].__name__, setting_type.__name__
Expand Down

0 comments on commit 00a7c16

Please sign in to comment.