Python-Type-Challenges
Python-Type-Challenges copied to clipboard
Master Python typing (type hints) with interactive online exercises!
## Description Use HTMX refactor random button. ## Done homepage random button sidebar random button Resolve #104
As we have [random challenge entrance](https://python-type-challenges.zeabur.app/random), we can add it to README.
## Description Currently, click random button will reload the page, and all passed-icon will reload.  
## New feature support test_code to add pyright-config as below. ```py ## End of test code ## # pyright: analyzeUnannotatedFunctions=false ``` ## Bug fix disable user to modify pyright-config.
## Bug description  If `# expect-type-error` not in `test_code`, challenge can pass with `raise`. ## Challenges - advanced-forward - advanced-never2
[PEP 696](https://www.python.org/dev/peps/pep-0696/) defaults for type variables
[PEP 698](https://www.python.org/dev/peps/pep-0698/)
Hi, I believe there is a bug in the in [Intermediate empty-tuple exercise](https://python-type-challenges.zeabur.app/intermediate/empty-tuple). Relevant code: ```python foo((1)) # expect-type-error ``` `(1)` is not a tuple, but rather an integer, I...