This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = "jeff" | |
print(f"My name is {name}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for b in batches: | |
if not isinstance(b, Minibatch): | |
raise TypeError("{b} is not a Minibatch") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RateOfChangePercent('f{symbol}.DailyROCP({1})', 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
raise ValueError('f{method_name} `inputs` cannot be None or empty.') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
metrics.Timer("f{self.name}.reconfigServiceWithBuildbotConfig") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
raise ValueError( | |
f"Arguments critical_section_def={critical_section_def} " | |
"and shared_name={shared_name} are mutually exclusive. " | |
"Please only specify one of them." | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
self.time_to_live_seconds = int(ttl) | |
except ValueError as e: | |
logger.error('TTL must be a number; got "{ttl}"') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
raise ValueError( | |
'invalid permutation element: elements must be from {-len(perm), ..., len(perm)-1}' | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
raise ValueError( | |
"{FLAGS.tfrecord2idx_script} does not lead to valid tfrecord2idx script." | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
response = await client.get( | |
"/api/nest/event_media/{device.id}/invalid-event-id" | |
) | |
assert response.status == HTTPStatus.NOT_FOUND |
NewerOlder