]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Adds exception when trying to run write_pyi.py with Python < 3.9
authorTilmanK <tilman.krummeck@googlemail.com>
Tue, 14 Sep 2021 19:43:30 +0000 (15:43 -0400)
committerFederico Caselli <cfederico87@gmail.com>
Tue, 14 Sep 2021 19:46:58 +0000 (19:46 +0000)
commit338fd68f1b33a143f9c9985be8b883f6ec4cd66d
tree3eb1f781e1f463676240c1a6af11178247aab560
parent1932b095444f4c69037f00c3251b3313d4bcddc6
Adds exception when trying to run write_pyi.py with Python < 3.9

### Description
write_pyi.py now raises an exception when someone tries to run the script with Python version 3.8 or smaller.

This also fixes:
- When using absolute Paths, i.e. on Windows, they are now converted to relative paths to avoid useless changes in the doc strings of the pyi files
- Corrected destination_path argument type when calling `generate_pyi_for_proxy` in `run_file`
- A comment typo

Fixes: #915
Closes: #919
Pull-request: https://github.com/sqlalchemy/alembic/pull/919
Pull-request-sha: e885d27ac5509858c8cb2927310f6195fc1d6004

Change-Id: Ia33d32b2828e71185186afc49848ce89d48a8323
tools/write_pyi.py