From d0c26c6e250115b2f51d530dae95cf2a3c656d94 Mon Sep 17 00:00:00 2001 From: Anthony Shaw Date: Wed, 28 Aug 2024 11:30:43 +1000 Subject: [PATCH] Update limitations.md since Optional is supported Optional was added in #135 --- docs/limitations.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/limitations.md b/docs/limitations.md index 1a9c4b65..585e6083 100644 --- a/docs/limitations.md +++ b/docs/limitations.md @@ -12,10 +12,6 @@ C# does not have a notion of `Tuple`, 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. @@ -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). \ No newline at end of file +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).