From 2d5f72bc8c2c9d17308fe8a8f7a47b09f65e878f Mon Sep 17 00:00:00 2001 From: colin-rogers-dbt <111200756+colin-rogers-dbt@users.noreply.github.com> Date: Thu, 18 Jan 2024 09:04:56 -0800 Subject: [PATCH 1/2] fix __init__ files (#34) --- .gitignore | 6 +----- dbt/__init__.py | 6 ++++++ dbt/include/__init__.py | 3 +++ 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 dbt/include/__init__.py diff --git a/.gitignore b/.gitignore index 6769e21d..cf98fcf8 100644 --- a/.gitignore +++ b/.gitignore @@ -153,8 +153,4 @@ dmypy.json cython_debug/ # PyCharm -# JetBrains specific template is maintained in a separate JetBrains.gitignore that can -# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore -# and can be added to the global gitignore or merged into this file. For a more nuclear -# option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ \ No newline at end of file +.idea/ \ No newline at end of file diff --git a/dbt/__init__.py b/dbt/__init__.py index e69de29b..782ff40f 100644 --- a/dbt/__init__.py +++ b/dbt/__init__.py @@ -0,0 +1,6 @@ +# N.B. +# This will add to the package’s __path__ all subdirectories of directories on sys.path named after the package which effectively combines both modules into a single namespace (dbt.adapters) + +from pkgutil import extend_path + +__path__ = extend_path(__path__, __name__) diff --git a/dbt/include/__init__.py b/dbt/include/__init__.py new file mode 100644 index 00000000..9088ea6a --- /dev/null +++ b/dbt/include/__init__.py @@ -0,0 +1,3 @@ +from pkgutil import extend_path + +__path__ = extend_path(__path__, __name__) \ No newline at end of file From e4c2f95098ef6b9a7448deb13a52c546294d7a51 Mon Sep 17 00:00:00 2001 From: colin-rogers-dbt <111200756+colin-rogers-dbt@users.noreply.github.com> Date: Thu, 18 Jan 2024 11:46:41 -0800 Subject: [PATCH 2/2] Add py.typed (#37) --- dbt/adapters/py.typed | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 dbt/adapters/py.typed diff --git a/dbt/adapters/py.typed b/dbt/adapters/py.typed new file mode 100644 index 00000000..e69de29b