Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ env:

jobs:
check:
name: Check Python (3.10)
name: Check Python (${{ matrix.python-version }})
runs-on: ubuntu-latest
env:
PYTHON_VERSION: '3.10'
PYTHON_VERSION: ${{ matrix.python-version }}

strategy:
matrix:
python-version: [ '3.10', '3.12' ]
Copy link
Contributor

Choose a reason for hiding this comment

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

IIUC this was previously working on 3.10 and 3.13 but failing on 3.12? So 3.13 clearly changes something important in this area - should you include 3.13 also?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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


steps:
- uses: actions/checkout@v4
Expand Down
7 changes: 1 addition & 6 deletions guppylang/cfg/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,7 @@ def visit_FunctionDef(
cfg,
func_ty,
docstring=docstring,
name=node.name,
args=node.args,
body=node.body,
decorator_list=node.decorator_list,
returns=node.returns,
type_comment=node.type_comment,
**dict(ast.iter_fields(node)),
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems legit to me, NestedFunctionDef extends ast.FunctionDef so can support all the same fields

)
set_location_from(new_node, node)
bb.statements.append(new_node)
Expand Down
Loading