request.session should not be taking kwargs

request.session() which refers to 

def session():
    """Returns a :class:`Session` for context-management."""
    return Session()

does not taking any values so i think request.session() shouldn't be taking keyword arguments. Getting "TypeError: session() takes no arguments (1 given)" when used with kwargs...