summaryrefslogtreecommitdiffstats
path: root/src/act4e_solutions/maps.py
diff options
context:
space:
mode:
authorAndrea Censi <acensi@ethz.ch>2022-02-26 12:40:14 +0100
committerAndrea Censi <acensi@ethz.ch>2022-02-26 12:40:14 +0100
commit5df248c0d5b67e1df4279f039384bb7e10423d4c (patch)
treeb008e0588b95621167d3064bf37e8722e9d8d66b /src/act4e_solutions/maps.py
parentmore comments (diff)
downloadact4e-5df248c0d5b67e1df4279f039384bb7e10423d4c.tar.gz
act4e-5df248c0d5b67e1df4279f039384bb7e10423d4c.zip
more exercises
Diffstat (limited to 'src/act4e_solutions/maps.py')
-rw-r--r--src/act4e_solutions/maps.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/act4e_solutions/maps.py b/src/act4e_solutions/maps.py
index 8f161f4..aff881f 100644
--- a/src/act4e_solutions/maps.py
+++ b/src/act4e_solutions/maps.py
@@ -1,4 +1,4 @@
-from typing import overload, TypeVar
+from typing import TypeVar
import act4e_interfaces as I
@@ -8,18 +8,9 @@ C = TypeVar("C")
class SolFiniteMapOperations(I.FiniteMapOperations):
- @overload
- def identity(self, s: I.FiniteSet[A]) -> I.FiniteMap[A, A]:
- ... # this is just a type declaration - do not implement
- @overload
def identity(self, s: I.Setoid[A]) -> I.Mapping[A, A]:
- ... # this is just a type declaration - do not implement
-
- def identity(self, s: I.Setoid[A]) -> I.Mapping[A, A]:
- raise NotImplementedError() # implement here
-
- #
+ raise NotImplementedError()
def compose(self, f: I.FiniteMap[A, B], g: I.FiniteMap[B, C]) -> I.FiniteMap[A, C]:
raise NotImplementedError()