Unverified Commit 1fbeef06 authored by cr0hn's avatar cr0hn Committed by GitHub
Browse files

Merge pull request #71 from vkropotko/master

Update subclass of web.View verification. Issue #68
parents e0f742c0 9a5c0fcb
from collections import defaultdict
from os.path import abspath, dirname, join
from inspect import isclass
import yaml
from aiohttp import web
......@@ -40,7 +41,7 @@ def _build_doc_from_func_doc(route):
out = {}
if issubclass(route.handler, web.View) and route.method == METH_ANY:
if isclass(route.handler) and issubclass(route.handler, web.View) and route.method == METH_ANY:
method_names = {
attr for attr in dir(route.handler) \
if attr.upper() in METH_ALL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment