Skip to content

Commit c8eadc4

Browse files
feat: add py.typed (#509)
* Update setup.py * Create py.typed * Update setup.py to trigger CI. --------- Co-authored-by: Mark Daoust <[email protected]>
1 parent 7546026 commit c8eadc4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

google/generativeai/py.typed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# see: https://peps.python.org/pep-0561/

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
6+
# You may obtain a copy of the License at:
77
#
88
# http://www.apache.org/licenses/LICENSE-2.0
99
#
@@ -88,6 +88,7 @@ def get_version():
8888
"Programming Language :: Python :: 3.12",
8989
"Operating System :: OS Independent",
9090
"Topic :: Scientific/Engineering :: Artificial Intelligence",
91+
"Typing :: Typed",
9192
],
9293
platforms="Posix; MacOS X; Windows",
9394
packages=packages,
@@ -97,4 +98,5 @@ def get_version():
9798
extras_require=extras_require,
9899
include_package_data=True,
99100
zip_safe=False,
101+
package_data={"generativeai": ["py.typed"]},
100102
)

0 commit comments

Comments
 (0)