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

[CodeStyle][UP006] use list instead of List for type annotations; #52061

Merged
merged 4 commits into from
Mar 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ select = [
"UP003",
"UP004",
"UP005",
"UP006",
"UP007",
"UP008",
# "UP009",
Expand Down
4 changes: 2 additions & 2 deletions python/paddle/jit/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from collections import OrderedDict
import inspect
import threading
from typing import Any, List
from typing import Any

import paddle
from paddle.fluid import core, dygraph
Expand Down Expand Up @@ -191,7 +191,7 @@ def copy_decorator_attrs(original_func, decorated_obj):
return decorated_obj


def ignore_module(modules: List[Any]):
def ignore_module(modules: list[Any]):
"""
Adds modules that ignore transcription.
Builtin modules that have been ignored are collections, pdb, copy, inspect, re, numpy, logging, six
Expand Down