diff --git a/archivist/archivist.py b/archivist/archivist.py index dc742311..23353633 100644 --- a/archivist/archivist.py +++ b/archivist/archivist.py @@ -224,7 +224,9 @@ def __copy__(self) -> "Archivist": arch._user_agent = self._user_agent return arch - def _add_headers(self, headers: "dict[str,str]|None", add_auth: "bool" = True) -> "dict[str,Any]": + def _add_headers( + self, headers: "dict[str,str]|None", add_auth: "bool" = True + ) -> "dict[str,Any]": newheaders = super()._add_headers(headers) if add_auth: @@ -339,7 +341,8 @@ def post_file( @retry_429 def delete( - self, url: str, + self, + url: str, *, headers: "dict[str, Any]|None" = None, response_data: "bool" = False, @@ -381,7 +384,7 @@ def patch( *, headers: "dict[str, Any]| None" = None, response_data: "bool" = False, - auth: "bool" = True + auth: "bool" = True, ) -> "dict[str, Any] | bytes": """PATCH method (REST) diff --git a/archivist/notebooks/Checking the Dog's Weight.ipynb b/archivist/notebooks/Checking the Dog's Weight.ipynb index eadd1bfc..2f1fa676 100644 --- a/archivist/notebooks/Checking the Dog's Weight.ipynb +++ b/archivist/notebooks/Checking the Dog's Weight.ipynb @@ -35,7 +35,6 @@ "metadata": {}, "outputs": [], "source": [ - "\n", "from json import dumps as json_dumps\n", "from os import getenv\n", "\n", diff --git a/archivist/notebooks/Create Artist and Album Release Info.ipynb b/archivist/notebooks/Create Artist and Album Release Info.ipynb index ec11f97f..b579840d 100644 --- a/archivist/notebooks/Create Artist and Album Release Info.ipynb +++ b/archivist/notebooks/Create Artist and Album Release Info.ipynb @@ -34,7 +34,6 @@ "metadata": {}, "outputs": [], "source": [ - "\n", "from json import dumps as json_dumps\n", "from os import getenv\n", "\n", diff --git a/archivist/notebooks/Feeding the Dog Hourly.ipynb b/archivist/notebooks/Feeding the Dog Hourly.ipynb index 5e796c94..9abe343d 100644 --- a/archivist/notebooks/Feeding the Dog Hourly.ipynb +++ b/archivist/notebooks/Feeding the Dog Hourly.ipynb @@ -35,7 +35,6 @@ "metadata": {}, "outputs": [], "source": [ - "\n", "from json import dumps as json_dumps\n", "from os import getenv\n", "\n", diff --git a/archivist/notebooks/Feeding the Dog in a Timely Manner.ipynb b/archivist/notebooks/Feeding the Dog in a Timely Manner.ipynb index f15b6b45..4866b8eb 100644 --- a/archivist/notebooks/Feeding the Dog in a Timely Manner.ipynb +++ b/archivist/notebooks/Feeding the Dog in a Timely Manner.ipynb @@ -35,7 +35,6 @@ "metadata": {}, "outputs": [], "source": [ - "\n", "from json import dumps as json_dumps\n", "from os import getenv\n", "\n", diff --git a/archivist/notebooks/Feeding the Dog.ipynb b/archivist/notebooks/Feeding the Dog.ipynb index 557dc8bc..f5d13007 100644 --- a/archivist/notebooks/Feeding the Dog.ipynb +++ b/archivist/notebooks/Feeding the Dog.ipynb @@ -35,7 +35,6 @@ "metadata": {}, "outputs": [], "source": [ - "\n", "from json import dumps as json_dumps\n", "from os import getenv\n", "\n", diff --git a/archivist/notebooks/Playing Fetch Every 5 Minutes.ipynb b/archivist/notebooks/Playing Fetch Every 5 Minutes.ipynb index e79cb931..7654535f 100644 --- a/archivist/notebooks/Playing Fetch Every 5 Minutes.ipynb +++ b/archivist/notebooks/Playing Fetch Every 5 Minutes.ipynb @@ -35,7 +35,6 @@ "metadata": {}, "outputs": [], "source": [ - "\n", "from json import dumps as json_dumps\n", "from os import getenv\n", "\n", diff --git a/archivist/notebooks/Sharing Album Release Info with Record Labels.ipynb b/archivist/notebooks/Sharing Album Release Info with Record Labels.ipynb index 71e6df17..81ee17e5 100644 --- a/archivist/notebooks/Sharing Album Release Info with Record Labels.ipynb +++ b/archivist/notebooks/Sharing Album Release Info with Record Labels.ipynb @@ -40,7 +40,6 @@ "metadata": {}, "outputs": [], "source": [ - "\n", "from json import dumps as json_dumps\n", "from os import getenv\n", "\n", diff --git a/archivist/notebooks/Sharing Album Release Info with User.ipynb b/archivist/notebooks/Sharing Album Release Info with User.ipynb index 3ca97268..3b831df2 100644 --- a/archivist/notebooks/Sharing Album Release Info with User.ipynb +++ b/archivist/notebooks/Sharing Album Release Info with User.ipynb @@ -34,7 +34,6 @@ "metadata": {}, "outputs": [], "source": [ - "\n", "from json import dumps as json_dumps\n", "from os import getenv\n", "\n", diff --git a/archivist/notebooks/Sharing Artist Asset with Record Labels.ipynb b/archivist/notebooks/Sharing Artist Asset with Record Labels.ipynb index fd144b4c..6c98b1e2 100644 --- a/archivist/notebooks/Sharing Artist Asset with Record Labels.ipynb +++ b/archivist/notebooks/Sharing Artist Asset with Record Labels.ipynb @@ -41,7 +41,6 @@ "metadata": {}, "outputs": [], "source": [ - "\n", "from json import dumps as json_dumps\n", "from os import getenv\n", "\n", diff --git a/archivist/notebooks/Sharing Artist Asset with User.ipynb b/archivist/notebooks/Sharing Artist Asset with User.ipynb index 3b9a71e6..f97fb258 100644 --- a/archivist/notebooks/Sharing Artist Asset with User.ipynb +++ b/archivist/notebooks/Sharing Artist Asset with User.ipynb @@ -34,7 +34,6 @@ "metadata": {}, "outputs": [], "source": [ - "\n", "from json import dumps as json_dumps\n", "from os import getenv\n", "\n",