MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / __init__

Method __init__

tensorboard/context.py:46–66  ·  view source on GitHub ↗

Create a request context. The argument list is sorted and may be extended in the future; therefore, callers must pass only named arguments to this initializer. Args: See "Fields" on class docstring. All arguments are optional and will be replaced

(
        self,
        auth=None,
        remote_ip=None,
        x_forwarded_for=None,
        client_feature_flags=None,
    )

Source from the content-addressed store, hash-verified

44 """
45
46 def __init__(
47 self,
48 auth=None,
49 remote_ip=None,
50 x_forwarded_for=None,
51 client_feature_flags=None,
52 ):
53 """Create a request context.
54
55 The argument list is sorted and may be extended in the future;
56 therefore, callers must pass only named arguments to this
57 initializer.
58
59 Args:
60 See "Fields" on class docstring. All arguments are optional
61 and will be replaced with default values if appropriate.
62 """
63 self._auth = auth if auth is not None else auth_lib.AuthContext.empty()
64 self._remote_ip = remote_ip
65 self._x_forwarded_for = x_forwarded_for or ()
66 self._client_feature_flags = client_feature_flags or {}
67
68 @property
69 def auth(self):

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected