From 8ed01594456f3ae58ee987f4f41e9feb2cf32eb1 Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Tue, 4 Sep 2018 15:50:47 +0100 Subject: [PATCH] Remove duplicate method definitions in importlib and jinja2 (#2427) --- stdlib/3/importlib/machinery.pyi | 4 ---- third_party/2and3/jinja2/exceptions.pyi | 2 -- 2 files changed, 6 deletions(-) diff --git a/stdlib/3/importlib/machinery.pyi b/stdlib/3/importlib/machinery.pyi index 9f191800e..77ff4df36 100644 --- a/stdlib/3/importlib/machinery.pyi +++ b/stdlib/3/importlib/machinery.pyi @@ -31,8 +31,6 @@ class BuiltinImporter(importlib.abc.MetaPathFinder, @classmethod def get_source(cls, fullname: str) -> None: ... # Loader - @classmethod - def load_module(cls, fullname: str) -> types.ModuleType: ... @staticmethod def module_repr(module: types.ModuleType) -> str: ... # type: ignore @classmethod @@ -63,8 +61,6 @@ class FrozenImporter(importlib.abc.MetaPathFinder, importlib.abc.InspectLoader): @classmethod def get_source(cls, fullname: str) -> None: ... # Loader - @classmethod - def load_module(cls, fullname: str) -> types.ModuleType: ... @staticmethod def module_repr(module: types.ModuleType) -> str: ... # type: ignore @classmethod diff --git a/third_party/2and3/jinja2/exceptions.pyi b/third_party/2and3/jinja2/exceptions.pyi index 861e6bc41..3a3076b90 100644 --- a/third_party/2and3/jinja2/exceptions.pyi +++ b/third_party/2and3/jinja2/exceptions.pyi @@ -5,8 +5,6 @@ class TemplateError(Exception): @property def message(self): ... def __unicode__(self): ... - @property - def message(self): ... class TemplateNotFound(IOError, LookupError, TemplateError): message = ... # type: Any