summaryrefslogtreecommitdiffstats
path: root/src/act4e_solutions/maps.py
diff options
context:
space:
mode:
authorAndrea Censi <acensi@ethz.ch>2022-02-22 20:01:52 +0100
committerAndrea Censi <acensi@ethz.ch>2022-02-22 20:01:52 +0100
commit3bb42870c19a5c80925219e2a410eb99d5eabab1 (patch)
treeed62761a78749852458e282a7585f93de9655f48 /src/act4e_solutions/maps.py
parentfix (diff)
downloadact4e-3bb42870c19a5c80925219e2a410eb99d5eabab1.tar.gz
act4e-3bb42870c19a5c80925219e2a410eb99d5eabab1.zip
more comments
Diffstat (limited to 'src/act4e_solutions/maps.py')
-rw-r--r--src/act4e_solutions/maps.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/act4e_solutions/maps.py b/src/act4e_solutions/maps.py
index 4984eef..acba84e 100644
--- a/src/act4e_solutions/maps.py
+++ b/src/act4e_solutions/maps.py
@@ -10,14 +10,16 @@ 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()
+ raise NotImplementedError() # implement here
+
+ #
def compose(self, f: I.FiniteMap[A, B], g: I.FiniteMap[B, C]) -> I.FiniteMap[A, C]:
raise NotImplementedError()