Update README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
c6d2666db5
commit
d712c63977
1 changed files with 2 additions and 4 deletions
|
@ -24,7 +24,7 @@ from dataclasses import dataclass
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class TestClass:
|
class TestClass:
|
||||||
a
|
a # -> NameError: name 'a' is not defined
|
||||||
b
|
b
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -45,9 +45,7 @@ class TestClass:
|
||||||
b: str
|
b: str
|
||||||
```
|
```
|
||||||
|
|
||||||
No error:
|
No error!!!
|
||||||
|
|
||||||
![image1](2022-04-02_20-36.png)
|
|
||||||
|
|
||||||
|
|
||||||
## What is a dataclass?
|
## What is a dataclass?
|
||||||
|
|
Loading…
Reference in a new issue