| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -194,12 +194,12 @@ def test_generic_function_type(self) -> None: | |
|
|
||
| def test_type_alias_expand_once(self) -> None: | ||
| A, target = self.fx.def_alias_1(self.fx.a) | ||
| assert get_proper_type(A) == target | ||
| assert get_proper_type(target) == target | ||
| assert get_proper_type(A) == target | ||
|
Comment thread
Copy link
Copy Markdown
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThis is fun, from this assert mypy now knows that target is a proper type, making get_proper_type(target) redundant :-)
Sorry, something went wrong.
All reactions
|
||
|
|
||
| A, target = self.fx.def_alias_2(self.fx.a) | ||
| assert get_proper_type(A) == target | ||
| assert get_proper_type(target) == target | ||
| assert get_proper_type(A) == target | ||
|
|
||
| def test_recursive_nested_in_non_recursive(self) -> None: | ||
| A, _ = self.fx.def_alias_1(self.fx.a) | ||
| Expand Down | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -4920,6 +4920,7 @@ def test_setattr() -> None: | |
| assert i.one == 1 | ||
| assert i.two == None | ||
| assert i.const == 42 | ||
| i = i | ||
|
Comment thread
Copy link
Copy Markdown
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThese tests have a "check initial values" then call __setattr__ then check subsequent values. We do a self assign to reset attribute narrowing
Sorry, something went wrong.
All reactions
|
||
|
|
||
| i.__setattr__("two", "2") | ||
| assert i.two == "2" | ||
| Expand Down Expand Up | @@ -4957,6 +4958,7 @@ def test_setattr_inherited() -> None: | |
| assert i.one == 1 | ||
| assert i.two == None | ||
| assert i.const == 42 | ||
| i = i | ||
|
|
||
| i.__setattr__("two", "2") | ||
| assert i.two == "2" | ||
| Expand Down Expand Up | @@ -4996,6 +4998,7 @@ def test_setattr_overridden() -> None: | |
| assert i.one == 1 | ||
| assert i.two == None | ||
| assert i.const == 42 | ||
| i = i | ||
|
|
||
| i.__setattr__("two", "2") | ||
| assert i.two == "2" | ||
| Expand Down Expand Up | @@ -5064,6 +5067,7 @@ def test_setattr_nonnative() -> None: | |
| assert i.one == 1 | ||
| assert i.two == None | ||
| assert i.const == 42 | ||
| i = i | ||
|
|
||
| i.__setattr__("two", "2") | ||
| assert i.two == "2" | ||
| Expand Down Expand Up | @@ -5134,6 +5138,8 @@ def test_no_setattr_nonnative() -> None: | |
| object.__setattr__(i, "three", 102) | ||
| assert i.three == 102 | ||
|
|
||
| i = i | ||
|
|
||
| del i.three | ||
| assert i.three == None | ||
|
|
||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityA little unfortunate, because infer_python_executable has side effects we infer more code as unreachable
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.