Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws/aws-cli
/ _is_json_scalar
Method
_is_json_scalar
awscli/formatter.py:135–138 ·
view source on GitHub ↗
(self, value)
Source
from the content-addressed store, hash-verified
133
self._yaml.dump(value, stream)
134
135
def
_is_json_scalar(self, value):
136
if
value is None:
137
return
True
138
return
isinstance(value, (int, float, bool, str))
139
140
141
class
YAMLFormatter(FullyBufferedFormatter):
Callers
1
dump
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected