-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update PMAT and necessary changes for new langchain and small changes to be compatible with PMA #103
Conversation
@@ -10,6 +11,9 @@ | |||
from prediction_prophet.functions.search import search | |||
from pydantic.types import SecretStr | |||
|
|||
if t.TYPE_CHECKING: | |||
from loguru import Logger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this change for? It looks below like it is still always using logging.Logger
below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the loguru's Logger below into accepted types, because in PMAT/PMA we use loguru, so we can pass it there without mypy complaining.
logger: t.Union[logging.Logger, "Logger"] = logging.getLogger()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And idk why logging.Logger | "Logger"
doesn't work in Python, so we need to use the old-school Union[logging.Logger, "Logger"]
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, so we can use prophet's research
in PMA? Makes sense!
No description provided.