Skip to content

Commit

Permalink
Include py.typed files in cirq-core and cirq-google (#4031)
Browse files Browse the repository at this point in the history
These are needed to enable type-checking for users who install cirq-core and cirq-google.
  • Loading branch information
maffoo committed Apr 20, 2021
1 parent 12530f1 commit d995a9c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cirq-core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
long_description=long_description,
packages=cirq_packages,
package_data={
'cirq': ['py.typed'],
'cirq.protocols.json_test_data': ['*'],
},
)
1 change: 1 addition & 0 deletions cirq-google/cirq_google/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Marker file for PEP 561. The cirq package uses inline types.
1 change: 1 addition & 0 deletions cirq-google/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
long_description=long_description,
packages=packs,
package_data={
'cirq_google': ['py.typed'],
'cirq_google.api.v2': ['*'],
'cirq_google.api.v1': ['*'],
'cirq_google.json_test_data': ['*'],
Expand Down

0 comments on commit d995a9c

Please sign in to comment.