We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tried it with the code bellow:
@overload def area(val:str) -> str: return "it's an str" @overload def area(val:int) -> str: return "it's an int" print(area('3')) print(area(7)) >> it's an str >> it's an str
The text was updated successfully, but these errors were encountered:
The issue is that the overload decorator from the holo library is not recognized. This is because the holo library is not a standard Python library.
Here's what you need to do:
Install the holo library:
bash
Verify
Open In Editor Edit Copy code pip install holo Import the library:
python
Open In Editor Edit Copy code from holo import overload With these steps, your overloaded functions should work as intended.
Sorry, something went wrong.
No branches or pull requests
Tried it with the code bellow:
The text was updated successfully, but these errors were encountered: