Update README.md

Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
David Rotermund 2023-12-18 23:54:44 +01:00 committed by GitHub
parent c6d2666db5
commit d712c63977
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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?