Giter Site home page Giter Site logo

fingerprint-recognition-dip's People

Contributors

lbonassi95 avatar nicoprocessor avatar

Watchers

 avatar

fingerprint-recognition-dip's Issues

Utils.py throwing an error

Hi, I tried using the utils.py file but I get the following error:

"TypeError: Too few parameters for typing.Dict; actual 1, expected 2"

The error comes on def inverse_dictionary.
I don't know where I went wrong with this one. Please advise.

**> Full Error:

TypeError Traceback (most recent call last)
in
----> 1 def inverse_dictionary(original_dict: Dict[Any], unique_values: bool = False) -> Dict[Any]:
2 """Swap keys and values in the dictionary
3 :param original_dict: the dictionary that will be inverted
4 :param unique_values: true if the values in the original dictionary are unique.
5 If false, the inverse dictionary will contain the list of original keys that were mapped to the same value, i.e:

C:\ProgramData\Anaconda3\lib\typing.py in inner(*args, **kwds)
249 except TypeError:
250 pass # All real errors (not unhashable args) are raised below.
--> 251 return func(*args, **kwds)
252 return inner
253

C:\ProgramData\Anaconda3\lib\typing.py in getitem(self, params)
625 msg = "Parameters to generic types must be types."
626 params = tuple(_type_check(p, msg) for p in params)
--> 627 _check_generic(self, params)
628 return _subs_tvars(self, self.parameters, params)
629

C:\ProgramData\Anaconda3\lib\typing.py in _check_generic(cls, parameters)
203 elen = len(cls.parameters)
204 if alen != elen:
--> 205 raise TypeError(f"Too {'many' if alen > elen else 'few'} parameters for {cls};"
206 f" actual {alen}, expected {elen}")
207

TypeError: Too few parameters for typing.Dict; actual 1, expected 2**

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.