-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for Literal types with incremental and fine-grained mode (#…
…6075) This pull request adds a variety of tests for Literal types and incremental and fine-grained mode. Most of the tests are relatively simple: the most complex ones focus on testing chained references to literal types and various shenanigans with str/unicode/bytes. It also removes one assert from the `visit_raw_literal` function in astmerge's TypeReplaceVisitor: it turned out it'll sometimes visit unanalyzed types.
- Loading branch information
1 parent
25b83ea
commit 2b8691d
Showing
7 changed files
with
611 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ | |
'contextlib', | ||
'sys', | ||
'mypy_extensions', | ||
'typing_extensions', | ||
'enum', | ||
) | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.