Skip to content

Commit 0522b16

Browse files
Helper to build the URL path based on the params, while avoiding None types.
1 parent fa4f375 commit 0522b16

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

jigsawstack/helpers.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
# Helper method that:
2-
# Accepts a dictionary ro typed dictionary or None
3-
# Also accepts a path for url endpont,
4-
# Builds the url endpoint with non None values where the key is the parameter name & the value is the parameter value
5-
# Returns the url endpoint with the parameters
1+
62
from typing import Dict, Optional, Union
73
from urllib.parse import urlencode
84

0 commit comments

Comments
 (0)