mirror of
https://github.com/davrot/pytutorial.git
synced 2025-04-18 13:16:41 +02:00
Update README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
d712c63977
commit
b71afc789f
1 changed files with 1 additions and 5 deletions
|
@ -16,7 +16,7 @@ Questions to [David Rotermund](mailto:davrot@uni-bremen.de)
|
||||||
|
|
||||||
This is the first construct in Python that requires type annotation.
|
This is the first construct in Python that requires type annotation.
|
||||||
|
|
||||||
If we do this:
|
If we do this, we get this nice error!
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
@ -28,10 +28,6 @@ class TestClass:
|
||||||
b
|
b
|
||||||
```
|
```
|
||||||
|
|
||||||
We get this nice error:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
With type annotations:
|
With type annotations:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue