Skip to content
Snippets Groups Projects
Commit 27cff7fa authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Type hints for bindings

parent bbe85a62
Branches
Tags
1 merge request!1First try of type hints
......@@ -74,13 +74,13 @@ class URL:
def __str__(self):
return str(self.__url)
def __repr__(self): # pragma: no cover
def __repr__(self) -> str: # pragma: no cover
return f"URL('{self.__url}')"
def set(self, value):
def set(self, value: str):
self.__url = value
def get(self):
def get(self) -> str:
return self.__url
@property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment