From d712c639775c6b54fc859d471f479046f2bf6c4c Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Mon, 18 Dec 2023 23:54:44 +0100 Subject: [PATCH] Update README.md Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> --- python_basics/dataclass/README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/python_basics/dataclass/README.md b/python_basics/dataclass/README.md index a6e1de7..83ff56f 100644 --- a/python_basics/dataclass/README.md +++ b/python_basics/dataclass/README.md @@ -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?