diff --git a/poetry.lock b/poetry.lock index b48fd7a5..ae8250d9 100644 --- a/poetry.lock +++ b/poetry.lock @@ -289,7 +289,7 @@ description = "Cross-platform colored terminal text." optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" groups = ["main", "dev"] -markers = "platform_system == \"Windows\" or sys_platform == \"win32\"" +markers = "sys_platform == \"win32\" or platform_system == \"Windows\"" files = [ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, @@ -1932,14 +1932,14 @@ telegram = ["requests"] [[package]] name = "typeguard" -version = "4.4.4" +version = "4.5.1" description = "Run-time type checker for Python" optional = false python-versions = ">=3.9" groups = ["main"] files = [ - {file = "typeguard-4.4.4-py3-none-any.whl", hash = "sha256:b5f562281b6bfa1f5492470464730ef001646128b180769880468bd84b68b09e"}, - {file = "typeguard-4.4.4.tar.gz", hash = "sha256:3a7fd2dffb705d4d0efaed4306a704c89b9dee850b688f060a8b1615a79e5f74"}, + {file = "typeguard-4.5.1-py3-none-any.whl", hash = "sha256:44d2bf329d49a244110a090b55f5f91aa82d9a9834ebfd30bcc73651e4a8cc40"}, + {file = "typeguard-4.5.1.tar.gz", hash = "sha256:f6f8ecbbc819c9bc749983cc67c02391e16a9b43b8b27f15dc70ed7c4a007274"}, ] [package.dependencies] diff --git a/terminusdb_client/client/Client.py b/terminusdb_client/client/Client.py index c5844222..72c5d8fc 100644 --- a/terminusdb_client/client/Client.py +++ b/terminusdb_client/client/Client.py @@ -2083,14 +2083,13 @@ def push( "author": author, "message": message, } + headers = {} if self._remote_auth_dict or remote_auth: - headers = { - "Authorization-Remote": ( - self._generate_remote_header(remote_auth) - if remote_auth - else self._remote_auth() - ) - } + headers["Authorization-Remote"] = ( + self._generate_remote_header(remote_auth) + if remote_auth + else self._remote_auth() + ) headers.update(self._default_headers) result = self._session.post( @@ -2619,14 +2618,13 @@ def clonedb( if description is None: description = f"New database {newid}" + headers = {} if self._remote_auth_dict or remote_auth: - headers = { - "Authorization-Remote": ( - self._generate_remote_header(remote_auth) - if remote_auth - else self._remote_auth() - ) - } + headers["Authorization-Remote"] = ( + self._generate_remote_header(remote_auth) + if remote_auth + else self._remote_auth() + ) headers.update(self._default_headers) rc_args = {"remote_url": clone_source, "label": newid, "comment": description}