Skip to content

Commit

Permalink
Update limitations.md since Optional is supported
Browse files Browse the repository at this point in the history
Optional was added in #135
  • Loading branch information
tonybaloney authored Aug 28, 2024
1 parent ad9217c commit d0c26c6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions docs/limitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ C# does not have a notion of `Tuple<T...>`, so the type annotation using `Tuple[

Python's type hinting supports `Union` types, which are not supported in C#.NET. This includes both `typing.Union` and the union operator described in [PEP 604](https://peps.python.org/pep-0604/).

### Optional Types

CSnakes doesn't support the `typing.Optional[T]` type annotation. Instead, you can use the `None` default value to indicate that a parameter is optional.

## Classes

CSnakes does not support source generation for custom types, this includes dataclasses and named tuple instances.
Expand Down Expand Up @@ -44,4 +40,4 @@ var age = person.GetAttr("age");

## Async functions

Python coroutines declared using the `async` syntax are not supported. If you would like this feature, please [raise an issue](https://github.com/tonybaloney/CSnakes/issues/new).
Python coroutines declared using the `async` syntax are not supported. If you would like this feature, please [raise an issue](https://github.com/tonybaloney/CSnakes/issues/new).

0 comments on commit d0c26c6

Please sign in to comment.