From b36573051a1a1cbc6f91b1e498fd7eede6082449 Mon Sep 17 00:00:00 2001 From: VarMonke Date: Mon, 2 May 2022 00:23:04 +0530 Subject: [PATCH 1/4] a --- .readthedocs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 493efc0..3a730da 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,4 +1,4 @@ -version: 1.1.1 +version: 1 sphinx: configuration: docs/conf.py From b2091313a98db9a8c1dfacb96ab629d85d3a6354 Mon Sep 17 00:00:00 2001 From: VarMonke Date: Mon, 2 May 2022 00:53:30 +0530 Subject: [PATCH 2/4] Fixed walrus, for real for real --- github/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/github/client.py b/github/client.py index d5ca29d..8fb6c80 100644 --- a/github/client.py +++ b/github/client.py @@ -190,14 +190,16 @@ class GHClient: @functools.wraps(func) async def wrapped(self: Self, *args: P.args, **kwargs: P.kwargs) -> Optional[Union[T, User, Repository]]: if type == 'user': - if obj := self._user_cache.get(kwargs.get('user')): + obj = self._user_cache.get(kwargs.get('user')) + if obj: return obj user: User = await func(self, *args, **kwargs) # type: ignore self._user_cache[kwargs.get("user")] = user return user if type == 'repo': - if obj := self._repo_cache.get(kwargs.get('repo')): + obj = self._repo_cache.get(kwargs.get('repo')) + if obj: return obj repo: Repository = await func(self, *args, **kwargs) # type: ignore From 01ea2f8c6d96a1ae0a0eff0cb0f9efa139c9caeb Mon Sep 17 00:00:00 2001 From: VarMonke Date: Mon, 2 May 2022 00:55:48 +0530 Subject: [PATCH 3/4] Docs sigh --- .readthedocs.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 68a1dce..1a8569d 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -4,3 +4,6 @@ sphinx: configuration: docs/conf.py fail_on_warning: false builder: html + +python: + version: 3.8 \ No newline at end of file From da407f8caa20353591e8c30c75926d0ec8ea524c Mon Sep 17 00:00:00 2001 From: VarMonke Date: Mon, 2 May 2022 00:59:56 +0530 Subject: [PATCH 4/4] docs --- docs/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 04edc2e..45d1ae9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -58,4 +58,6 @@ html_favicon = './assets/Github-Python.png' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] \ No newline at end of file +html_static_path = ['_static'] + +autodoc_mock_imports = ["typing_extensions"] \ No newline at end of file