Skip to content
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 .py files from main branch #163

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LZDXN
Copy link

@LZDXN LZDXN commented Feb 3, 2024

No description provided.

@@ -18,7 +18,7 @@ class ExtractS3Op(Op):

def __init__(self, name: str = "extract_s3_op") -> None:
try:
import boto3 # pylint: disable=import-outside-toplevel
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please do not remove # pylint which is used to silence the linter error.

@@ -12,10 +12,8 @@ class ExtractIpynbOp(Op):

def __init__(self, name: str) -> None:
try:
import nbformat # pylint: disable=import-outside-toplevel
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@@ -144,7 +144,7 @@ def __init__(
self, prompt_template: PromptTemplate, model_config: Dict[str, Any]
) -> None:
# import in class level to avoid installing openai package
from openai import OpenAI # pylint: disable=import-outside-toplevel
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same for all the rest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants