Traceback (most recent call last):


 "/install/bin/stubgen", line 8, in <module>

sys.exit(main())


 "mypy/stubgen.py", line 1564, in main


 "mypy/stubgen.py", line 1457, in generate_stubs


 "mypy/stubgenc.py", line 64, in generate_stub_for_c_module


 "mypy/stubgenc.py", line 293, in generate_c_type_stub


 "mypy/stubgenc.py", line 164, in generate_c_function_stub
TypeError: str object expected; got None

Traceback (most recent call last):

...

<My application's stack trace>

...


 "./virtualenv/lib/python3.6/site-packages/ldap3/extend/standard/PagedSearch.py", line 63, in paged_search_generator

None if cookie is True else cookie)


 "./virtualenv/lib/python3.6/site-packages/ldap3/core/connection.py", line 763, in search

self.server.schema if self.server else None)


 "./virtualenv/lib/python3.6/site-packages/ldap3/operation/search.py", line 363, in search_operation

request['filter'] = compile_filter(parse_filter(search_filter, schema, auto_escape, auto_encode).elements[0])
# parse the searchFilter string and compile it starting from the root node


 "./virtualenv/lib/python3.6/site-packages/ldap3/operation/search.py", line 223, in compile_filter

boolean_filter[pos] = compile_filter(element)


 "./virtualenv/lib/python3.6/site-packages/ldap3/operation/search.py", line 235, in compile_filter

boolean_filter['innerNotFilter'] = compile_filter(filter_node.elements[0])


 "./virtualenv/lib/python3.6/site-packages/ldap3/operation/search.py", line 260, in compile_filter

matching_filter['dnAttributes'] = DnAttributes(filter_node.assertion['dnAttributes'])


 "./virtualenv/lib/python3.6/site-packages/pyasn1/type/univ.py", line 107, in __init__

base.SimpleAsn1Type.__init__(self, value, **kwargs)


 "./virtualenv/lib/python3.6/site-packages/pyasn1/type/base.py", line 267, in __init__

value = self.prettyIn(value)


 "./virtualenv/lib/python3.6/site-packages/pyasn1/type/univ.py", line 258, in prettyIn

return int(value)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
