Skip to content

Commit

Permalink
fix missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Jan 9, 2024
1 parent db55c87 commit 56d1861
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions dbt/common/ui.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import sys
import textwrap
from typing import Dict
Expand Down
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,21 @@ classifiers = [
]
dependencies = [
"agate~=1.7.0",
"colorama>=0.3.9,<0.5", # TODO: major version 0 - should we use it?
"colorama>=0.3.9,<0.5",
"isodate>=0.6,<0.7",
"jsonschema~=4.0",
"Jinja2~=3.0",
"mashumaro[msgpack]~=3.9",
"pathspec>=0.9,<0.12", # TODO: I'm not sure this is needed. check search.py?
"protobuf>=4.0.0",
"python-dateutil~=2.0",
"requests<3.0.0",
"typing-extensions~=4.4",
# Match snowflake-connector-python, to ensure compatibility in dbt-snowflake
"cffi>=1.9,<2.0.0",
"idna>=2.5,<4",
"requests<3.0.0",
"urllib3~=1.0", # we pin urllib3 ~= 1.0 because of openssl requirement for requests
]

[build-system]
Expand Down
16 changes: 16 additions & 0 deletions third-party-stubs/colorama/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from typing import Optional, Any

class Fore:
RED: str = ...
GREEN: str = ...
YELLOW: str = ...

class Style:
RESET_ALL: str = ...

def init(
autoreset: bool = ...,
convert: Optional[Any] = ...,
strip: Optional[Any] = ...,
wrap: bool = ...,
) -> None: ...

0 comments on commit 56d1861

Please sign in to comment.