Skip to content
Open
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
2 changes: 2 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def map_list(func: Callable[[T], U], items: Sequence[T]) -> list[U]:

Use structural pattern matching for handling sum types:

{% raw %}
```python
def type_to_string(t: Type) -> str:
match t:
Expand All @@ -149,6 +150,7 @@ def type_to_string(t: Type) -> str:
case UnitType():
return "()"
```
{% endraw %}

## Code Style

Expand Down