fix(ResolverMatch): Added _func_path (#631)

* fix(ResolverMatch): Added _func_path

ResolverMatch class in Django contains _func_path variable and it will get initialized in init method whatever the condition, so it should be added in type stubs as well. https://github.com/django/django/blob/main/django/urls/resolvers.py#L48

* Update resolvers.pyi

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
Abhishek Chaudhary
2021-06-03 16:27:16 +05:30
committed by GitHub
parent 9a95b98398
commit becb0c9605

View File

@@ -14,6 +14,7 @@ class ResolverMatch:
namespace: str = ... namespace: str = ...
view_name: str = ... view_name: str = ...
route: str = ... route: str = ...
_func_path: str
def __init__( def __init__(
self, self,
func: Callable, func: Callable,