Remove duplicate method definitions in importlib and jinja2 (#2427)

This commit is contained in:
Ivan Levkivskyi
2018-09-04 15:50:47 +01:00
committed by Jelle Zijlstra
parent 50b5650a11
commit 8ed0159445
2 changed files with 0 additions and 6 deletions

View File

@@ -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

View File

@@ -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