Skip to content

Commit 1b4d0d3

Browse files
committed
fixing another type check
1 parent bc51c0d commit 1b4d0d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dash/dash.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,10 @@ def __init__( # pylint: disable=too-many-statements
542542
# get_backend returns the backend class for a string
543543
# So we compare the class names
544544
expected_backend_cls = get_backend(inferred_backend)
545-
if backend is not expected_backend_cls:
545+
if (
546+
backend.__module__ != expected_backend_cls.__module__
547+
or backend.__name__ != expected_backend_cls.__name__
548+
):
546549
raise ValueError(
547550
f"Conflict between provided backend '{backend.__name__}' and server type '{inferred_backend}'."
548551
)

0 commit comments

Comments
 (0)