Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add inline type hints #134

Merged
merged 27 commits into from Aug 6, 2020
Merged

Conversation

crwilcox
Copy link
Contributor

@crwilcox crwilcox commented Jul 29, 2020

No description provided.

@crwilcox crwilcox changed the base branch from master to v2-staging July 29, 2020 00:38
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 29, 2020
@crwilcox crwilcox added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 29, 2020
@crwilcox crwilcox requested a review from rafilong July 31, 2020 22:06
Copy link
Contributor

@rafilong rafilong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some confusion regarding duplication and specific types.

google/cloud/firestore_v1/__init__.py Outdated Show resolved Hide resolved
google/cloud/firestore_v1/async_batch.py Outdated Show resolved Hide resolved
google/cloud/firestore_v1/base_query.py Show resolved Hide resolved
google/cloud/firestore_v1/types/__init__.py Outdated Show resolved Hide resolved
google/cloud/firestore_v1/types/common.py Outdated Show resolved Hide resolved
google/cloud/firestore_v1/types/write.py Outdated Show resolved Hide resolved
google/cloud/firestore_v1/types/query.py Outdated Show resolved Hide resolved
google/cloud/firestore_v1/types/firestore.py Outdated Show resolved Hide resolved
google/cloud/firestore_v1/types/document.py Outdated Show resolved Hide resolved
@crwilcox crwilcox merged commit afff842 into googleapis:v2-staging Aug 6, 2020
from google.api_core import operation as ga_operation
from google.api_core import operation_async
from google.api_core import operation as ga_operation # type: ignore
from google.api_core import operation_async # type: ignore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is autogen code: how are we going to preserve this work?

@@ -22,7 +22,7 @@

import nox


PYTYPE_VERSION = "pytype==2020.7.24"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change (and below) gets wiped out by synthtool.

@@ -17,3 +17,14 @@
# Generated by synthtool. DO NOT EDIT!
[bdist_wheel]
universal = 1

[pytype]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likewise wiped out by synthtool.

from typing import Tuple


__all__: Tuple[
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why a tuple? It would normally be List[str]?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. do not merge Indicates a pull request not ready for merge, due to either quality or timing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants