From ac629ec15064bc6373aad0ed0b45417159353aef Mon Sep 17 00:00:00 2001 From: Joachim Desroches Date: Mon, 21 Jul 2025 15:37:58 +0200 Subject: [PATCH] Add py.typed file so that typecheckers recognize this library as typed This is necessary as type-checking tools like mypy, pyright and ty use this file as described by PEP-0561 to recognize typed libraries. This is useful for better DX where, when types are available, they may enhance autocompletion and/or provide early warnings of invalid code. I would also recommend adding, if possible, types to the non-generated parts of the code (like the GhApi class for example). Closes #178. --- MANIFEST.in | 1 + ghapi/py.typed | 0 2 files changed, 1 insertion(+) create mode 100644 ghapi/py.typed diff --git a/MANIFEST.in b/MANIFEST.in index 5c0e7ce..3bb6a1c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,4 +2,5 @@ include settings.ini include LICENSE include CONTRIBUTING.md include README.md +include ghapi/py.typed recursive-exclude * __pycache__ diff --git a/ghapi/py.typed b/ghapi/py.typed new file mode 100644 index 0000000..e69de29