diff options
author | Andrea Censi <acensi@ethz.ch> | 2022-02-22 20:01:52 +0100 |
---|---|---|
committer | Andrea Censi <acensi@ethz.ch> | 2022-02-22 20:01:52 +0100 |
commit | 3bb42870c19a5c80925219e2a410eb99d5eabab1 (patch) | |
tree | ed62761a78749852458e282a7585f93de9655f48 /src/act4e_solutions/maps.py | |
parent | fix (diff) | |
download | act4e-3bb42870c19a5c80925219e2a410eb99d5eabab1.tar.gz act4e-3bb42870c19a5c80925219e2a410eb99d5eabab1.zip |
more comments
Diffstat (limited to 'src/act4e_solutions/maps.py')
-rw-r--r-- | src/act4e_solutions/maps.py | 8 |
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() |