Bobby R. Bruce
3f9afe96c6
python,util: Add Python MyPy Stubgen to enable Pylance IntelliSense ( #307 )
...
This allows us to generate stubs for the modules in gem5. The output
will be a "typings" directory which can be used by Pylance (Python
IntelliSense) to infer typings in Visual Studio Code.
Note: A "typings" directory in the root of the workspace is the default
location for Pylance to look for typings. This can be changed via
`python.analysis.stubPath` in "settings.json".
Usage
=====
```
pip3 install -r requirements.txt
scons build/ALL/gem5.opt -j$(nproc)
./build/ALL/gem5.opt util/gem5-stubgen.py
```
2023-09-21 11:52:16 -07:00
..
2021-12-11 04:00:56 +00:00
2023-09-12 17:54:35 +08:00
2021-04-02 20:45:12 +00:00
2022-04-20 06:07:09 +00:00
2022-09-01 08:07:02 +00:00
2023-09-11 11:19:49 -07:00
2020-02-18 10:24:43 +00:00
2023-07-08 02:01:02 +00:00
2023-07-10 22:57:28 +00:00
2022-11-29 23:44:38 +00:00
2023-09-10 20:32:49 -07:00
2023-04-26 00:41:06 +00:00
2023-03-16 09:05:29 +00:00
2022-07-08 07:16:56 +00:00
2023-03-16 09:05:29 +00:00
2023-03-16 09:05:29 +00:00
2023-04-14 05:31:03 +00:00
2023-08-27 19:07:45 -07:00
2023-07-26 19:41:04 -07:00
2023-05-23 03:14:55 +00:00
2020-02-18 10:24:43 +00:00
2023-04-08 20:47:04 +00:00
2023-09-13 13:36:33 +01:00
2022-08-03 09:10:41 +00:00
2020-02-18 10:24:43 +00:00
2022-08-03 09:10:41 +00:00
2023-03-16 09:05:29 +00:00
2022-08-24 21:47:07 +00:00
2023-03-16 09:05:29 +00:00
2022-08-03 09:10:41 +00:00
2023-03-16 09:05:29 +00:00
2022-08-03 09:10:41 +00:00
2023-03-16 09:05:29 +00:00
2012-09-25 11:49:40 -05:00
2022-08-03 09:10:41 +00:00
2022-08-03 09:10:41 +00:00
2023-03-16 09:05:29 +00:00
2023-09-12 15:19:49 -07:00
2023-03-16 09:05:29 +00:00
2023-03-16 09:05:29 +00:00
2022-08-24 21:47:07 +00:00
2023-08-10 15:48:13 -07:00
2023-03-16 09:05:29 +00:00
2022-08-03 09:10:41 +00:00
2021-07-27 15:55:49 +00:00
2017-10-05 09:16:35 +00:00
2022-04-19 22:01:00 +00:00
2022-08-03 09:10:41 +00:00
2022-08-03 09:10:41 +00:00
2023-03-16 09:05:29 +00:00
2023-09-14 15:33:17 -07:00
2023-03-16 09:05:29 +00:00
2023-03-16 09:05:29 +00:00
2022-09-02 18:42:18 +00:00
2022-08-24 21:47:07 +00:00
2020-02-18 10:24:43 +00:00
2020-02-18 10:24:43 +00:00
2022-08-24 21:47:07 +00:00
2023-03-16 09:05:29 +00:00
2022-08-24 21:47:07 +00:00
2023-03-16 09:05:29 +00:00
2021-08-31 23:45:38 +00:00