mirror of https://gitlab.com/bashrc2/epicyon
Possible argument types
parent
2c1f80476f
commit
db2be97f25
2
utils.py
2
utils.py
|
|
@ -75,7 +75,7 @@ def remove_zero_length_strings(text: str) -> str:
|
||||||
return text.replace('', '')
|
return text.replace('', '')
|
||||||
|
|
||||||
|
|
||||||
def get_url_from_post(url_field) -> str:
|
def get_url_from_post(url_field: str | list) -> str:
|
||||||
"""Returns a url from a post object
|
"""Returns a url from a post object
|
||||||
"""
|
"""
|
||||||
if isinstance(url_field, str):
|
if isinstance(url_field, str):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue