Skip to content

Commit

Permalink
[CodeStyle][UP006] use list instead of List for type annotations; (#5…
Browse files Browse the repository at this point in the history
…2061)

* use list instead of List for type annotations

* delete import of List
  • Loading branch information
kk-2000 authored Mar 29, 2023
1 parent ad45217 commit ab47a98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,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

0 comments on commit ab47a98

Please sign in to comment.