Skip to content

Add tests for simple target in annotated assign stmt#10897

Merged
dhruvmanila merged 1 commit intodhruv/parserfrom
dhruv/ann-assign-simple-target-test
Apr 12, 2024
Merged

Add tests for simple target in annotated assign stmt#10897
dhruvmanila merged 1 commit intodhruv/parserfrom
dhruv/ann-assign-simple-target-test

Conversation

@dhruvmanila
Copy link
Member

simple is a boolean integer set to True for a Name node in target that do not appear in between parenthesis and are hence pure names and not expressions.

Reference: https://docs.python.org/3/library/ast.html#ast.AnnAssign

@dhruvmanila dhruvmanila added bug Something isn't working parser Related to the parser fuzzer Surfaced via fuzzing. labels Apr 12, 2024
@dhruvmanila dhruvmanila merged commit 27bb09c into dhruv/parser Apr 12, 2024
@dhruvmanila dhruvmanila deleted the dhruv/ann-assign-simple-target-test branch April 12, 2024 06:28
@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

dhruvmanila added a commit that referenced this pull request Apr 15, 2024
> `simple` is a boolean integer set to `True` for a
[Name](https://docs.python.org/3/library/ast.html#ast.Name) node in
`target` that do not appear in between parenthesis and are hence pure
names and not expressions.

Reference: https://docs.python.org/3/library/ast.html#ast.AnnAssign
dhruvmanila added a commit that referenced this pull request Apr 16, 2024
> `simple` is a boolean integer set to `True` for a
[Name](https://docs.python.org/3/library/ast.html#ast.Name) node in
`target` that do not appear in between parenthesis and are hence pure
names and not expressions.

Reference: https://docs.python.org/3/library/ast.html#ast.AnnAssign
dhruvmanila added a commit that referenced this pull request Apr 16, 2024
> `simple` is a boolean integer set to `True` for a
[Name](https://docs.python.org/3/library/ast.html#ast.Name) node in
`target` that do not appear in between parenthesis and are hence pure
names and not expressions.

Reference: https://docs.python.org/3/library/ast.html#ast.AnnAssign
dhruvmanila added a commit that referenced this pull request Apr 17, 2024
> `simple` is a boolean integer set to `True` for a
[Name](https://docs.python.org/3/library/ast.html#ast.Name) node in
`target` that do not appear in between parenthesis and are hence pure
names and not expressions.

Reference: https://docs.python.org/3/library/ast.html#ast.AnnAssign
dhruvmanila added a commit that referenced this pull request Apr 18, 2024
> `simple` is a boolean integer set to `True` for a
[Name](https://docs.python.org/3/library/ast.html#ast.Name) node in
`target` that do not appear in between parenthesis and are hence pure
names and not expressions.

Reference: https://docs.python.org/3/library/ast.html#ast.AnnAssign
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working fuzzer Surfaced via fuzzing. parser Related to the parser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant