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

[Bug]: Python collections.abc.Callable takes only 1 argument instead of 2 #7432

Closed
SegmentationViolator opened this issue Aug 30, 2021 · 1 comment
Labels
bug report Something is not working properly.

Comments

@SegmentationViolator
Copy link

SegmentationViolator commented Aug 30, 2021

Problem description

collection.abc.Callable takes 2 arguments Callable[[param_type], return_type] but in termux it takes only 1 argument and if two arguments are passed it raises this exception

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: list expected at most 1 argument, got 2

What steps will reproduce the bug?

  1. run python interpreter
$ python
  1. run the following code
import collections.abc
collections.abc.Callable[[...], ...]

What is the expected behavior?

code should run without raising any exceptions

System information

termux-info:

Application version:
0.117                                                                         Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.librehat.com/apt/termux-main/ stable main                  # science-repo (sources.list.d/science.list)
deb https://packages.termux.org/apt/termux-science science stable             # game-repo (sources.list.d/game.list)                                        deb https://packages.termux.org/apt/termux-games games stable
Updatable packages:                                                           All packages up to date
Android version:                                                              11                                                                            Kernel build information:
Linux localhost 4.4.177-21859867 #1 SMP PREEMPT Sat Jun 5 13:51:19 +07 2021 aarch64 Android                                                                 Device manufacturer:                                                          samsung                                                                       Device model:                                                                 SM-A307FN
@SegmentationViolator SegmentationViolator added the bug report Something is not working properly. label Aug 30, 2021
Grimler91 added a commit that referenced this issue Aug 30, 2021
It does not seem to be necessary any more, and it causes issues:
#7432
landfillbaby pushed a commit that referenced this issue Aug 30, 2021
It does not seem to be necessary any more, and it causes issues:
#7432
@landfillbaby
Copy link
Member

should be fixed in 3.9.6-5, was my fault!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly.
Projects
None yet
Development

No branches or pull requests

2 participants