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

Python typing: Use 'str', not 'string' #6422

Merged
merged 1 commit into from Mar 26, 2019

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Mar 22, 2019

https://mypy.readthedocs.io/en/latest/cheat_sheet.html

flake8 testing of https://github.com/tensorflow/models on Python 3.7.1

$ flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics

./official/recommendation/data_pipeline.py:346:41: F821 undefined name 'string'
               epoch_dir=None           # type: string
                                        ^

https://mypy.readthedocs.io/en/latest/cheat_sheet.html

[flake8](http://flake8.pycqa.org) testing of https://github.com/tensorflow/models on Python 3.7.1

$ __flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics__
```
./official/recommendation/data_pipeline.py:346:41: F821 undefined name 'string'
               epoch_dir=None           # type: string
                                        ^
```
@cclauss cclauss requested review from karmel and a team as code owners March 22, 2019 07:44
Copy link
Contributor

@dynamicwebpaige dynamicwebpaige left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for making the fix!

@dynamicwebpaige dynamicwebpaige merged commit e2ef610 into tensorflow:master Mar 26, 2019
@cclauss cclauss deleted the patch-4 branch March 26, 2019 20:01
wlongxiang pushed a commit to wlongxiang/models that referenced this pull request Apr 24, 2019
https://mypy.readthedocs.io/en/latest/cheat_sheet.html

[flake8](http://flake8.pycqa.org) testing of https://github.com/tensorflow/models on Python 3.7.1

$ __flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics__
```
./official/recommendation/data_pipeline.py:346:41: F821 undefined name 'string'
               epoch_dir=None           # type: string
                                        ^
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants