Repository navigation
Use recommended python3.6 APIs and document 3.7 upgrades - #4134
Merged
phoenix-meadowlark merged 4 commits intoDec 9, 2020
Merged
Conversation
GMNGeoffrey
approved these changes
Dec 9, 2020
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # TODO(#4131) python>=3.7: Use postponed type annotations. |
Member
There was a problem hiding this comment.
Is this comment applicable everywhere? It doesn't necessarily seem super useful to have the TODO listed everywhere as opposed to just listing it in the issue.
Contributor
Author
There was a problem hiding this comment.
It only affects files with cases like the following
class ReferenceSelf
@staticmethod
def clone(self) -> "ReferenceSelf"
passand BackendInfo (which can't be defined before it's used in *CompiledModule because it stores the *CompiledModule classes on its cls).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note: It's probably easiest to review each commit separately.
Changes:
absl.loggingexcluded).subprocess.check_*calls with the recommendedsubprocess.run(check=True,...).python>=3.7: Use postponed type annotations.python>=3.7: Consider using a dataclass.python>=3.7: Use capture_output=True.python>=3.7: Replace 'universal_newlines' with 'text'.python>=3.7: Remove redundant OrderedDict.