Skip to content

Commit f95568d

Browse files
alonbldpgeorge
authored andcommitted
abc: Add ABC base class.
This trivial addition will allow less code differences between standard Python classes and MicroPython code. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
1 parent 913498e commit f95568d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

python-stdlib/abc/abc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
class ABC:
2+
pass
3+
4+
15
def abstractmethod(f):
26
return f

python-stdlib/abc/manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
metadata(version="0.0.1")
1+
metadata(version="0.1.0")
22

33
module("abc.py")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy