MatrixTM / PyRoxy

MIT License
42 stars 64 forks source link

SyntaxError: unmatched ')' #4

Closed LazarusUA closed 2 years ago

LazarusUA commented 2 years ago
  File "/usr/local/lib/python3.10/site-packages/PyRoxy/Tools/__init__.py", line 18
    rand_char: Callable[[int], str] = lambda length=16: chr(Random.rand_int(0, 1000)) for _ in range(length))
                                                                                                            ^
SyntaxError: unmatched ')'
LazarusUA commented 2 years ago

It would be cool if you did version tags so I could use older versions

Igorek2112 commented 2 years ago

I think it should be like this: rand_char: Callable[[int], str] = lambda length=16: chr(Random.randint(0, 1000) for in range(length)) after the change the code is working.

anochuv commented 2 years ago

More correct fix: #6

MHProDev commented 2 years ago

fixed