kopia lustrzana https://github.com/micropython/micropython-lib
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>master
rodzic
913498ef05
commit
f95568da43
|
@ -1,2 +1,6 @@
|
||||||
|
class ABC:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def abstractmethod(f):
|
def abstractmethod(f):
|
||||||
return f
|
return f
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
metadata(version="0.0.1")
|
metadata(version="0.1.0")
|
||||||
|
|
||||||
module("abc.py")
|
module("abc.py")
|
||||||
|
|
Ładowanie…
Reference in New Issue