Skip to content

Commit b05dddb

Browse files
authored
Chore: fix pdoc deployment (tobymao#4856)
1 parent b7a0df1 commit b05dddb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pdoc/cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
# Need this import or else import_module doesn't work
1010
import sqlglot # noqa
11+
from sqlglot.dialects import *
12+
13+
# Load all dialects up front because lazy loading breaks pdoc's dynamic importing
14+
sqlglot.dialects.__all__ = [globals()[attr_name] for attr_name in sqlglot.dialects.__all__]
1115

1216

1317
def mocked_import(*args, **kwargs):

0 commit comments

Comments
 (0)