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
|
||||
class TestClass:
|
||||
a
|
||||
a # -> NameError: name 'a' is not defined
|
||||
b
|
||||
```
|
||||
|
||||
|
@ -45,9 +45,7 @@ class TestClass:
|
|||
b: str
|
||||
```
|
||||
|
||||
No error:
|
||||
|
||||
![image1](2022-04-02_20-36.png)
|
||||
No error!!!
|
||||
|
||||
|
||||
## What is a dataclass?
|
||||
|
|
Loading…
Reference in a new issue