Skip to content

Commit e22e2f9

Browse files
authored
fix the bug in isinstance(arg, int) failed (#75065)
1 parent 653883e commit e22e2f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def new_init(self, *args, **kwargs):
148148
place=device,
149149
)
150150
elif (
151-
builtins.all(isinstance(arg, int) for arg in args)
151+
builtins.all(isinstance(arg, builtins.int) for arg in args)
152152
and len(kwargs) == 0
153153
):
154154
# case 3, 4

0 commit comments

Comments
 (0)