We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aabc930 commit 2c7b21aCopy full SHA for 2c7b21a
1 file changed
CHANGES.rst
@@ -13,10 +13,10 @@ works with both of these:
13
14
.. code-block:: python
15
16
- def say_hello(name: Optional[str]):
+ def say_hello(name: Optional[str] = None):
17
print(f'Hello {name}' if name else 'Hello')
18
19
- def say_hello(name: str | None):
+ def say_hello(name: str | None = None):
20
21
22
0.5.0
0 commit comments