Skip to content

Commit 1b01df7

Browse files
authoredOct 24, 2024··
Merge pull request #37 from kms7530/actions/black
[Chore] Black Formatter 수정 반영
2 parents 6355732 + aeabdaa commit 1b01df7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
 

‎parser/code_generator.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ def main(args):
5656
for filename in model_service_py:
5757
parser = CodeParser(filename)
5858
for cls in parser.bentoml_classes():
59-
if cls["class_name"] not in Config.MODEL_SELECT_LOAD: # Config에서 선택한 모델만 로드함
59+
if (
60+
cls["class_name"] not in Config.MODEL_SELECT_LOAD
61+
): # Config에서 선택한 모델만 로드함
6062
continue
6163

6264
target_classes.append(cls)

‎parser/code_parser.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ def __extract_decorator(self, decorator) -> Dict:
5757
decorator (ast.AST): 데코레이터 노드.
5858
5959
Returns:
60-
Dict: `@api` 데코레이터와 일치할 경우, 데코레이터의 인수를 포함한 딕셔너리를 반환.
60+
Dict: `@api` 데코레이터와 일치할 경우, 데코레이터의 인수를 포함한 딕셔너리를 반환.
6161
일치하지 않으면 빈 딕셔너리를 반환.
6262
"""
6363
return (
6464
{"decorator_args": self.__parse_decorator_args(decorator)}
6565
if (
6666
isinstance(decorator, ast.Call)
67-
and isinstance(decorator.func, ast.Attribute) # function 객체인지 체크
68-
and decorator.func.attr == "api" # bentoml."api"
67+
and isinstance(decorator.func, ast.Attribute) # function 객체인지 체크
68+
and decorator.func.attr == "api" # bentoml."api"
6969
)
7070
else {}
7171
)
@@ -117,7 +117,7 @@ def __extract_class_defined(self) -> List[Dict]:
117117
Returns:
118118
List[Dict]: 추출된 클래스 정보를 포함한 딕셔너리 리스트.
119119
"""
120-
120+
121121
return [
122122
{
123123
"class_name": node.name,

0 commit comments

Comments
 (0)
Please sign in to comment.