Skip to content

Commit

Permalink
linting; mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleclo committed Oct 11, 2024
1 parent 8a93dc8 commit 9c89418
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
3 changes: 1 addition & 2 deletions olmo/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@
import sys
import time
import warnings
from collections import defaultdict
from datetime import datetime
from enum import Enum
from itertools import cycle, islice
from pathlib import Path
from queue import Queue
from threading import Thread
from typing import Any, Callable, Dict, List, MutableMapping, Optional, Tuple, Union
from typing import Any, Callable, Dict, MutableMapping, Optional, Tuple, Union

import boto3
import botocore.exceptions as boto_exceptions
Expand Down
12 changes: 6 additions & 6 deletions scripts/compare_wandb_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ def simplify_path(path):


def print_data_differences(left_data_paths: Counter, right_data_paths: Counter):
print(f"===== Data Paths for left config:\n")
left_data_paths = {simplify_path(path): count for path, count in left_data_paths.items()}
for path, num_files in left_data_paths.items():
print("===== Data Paths for left config:\n")
simplified_left_data_paths = {simplify_path(path): count for path, count in left_data_paths.items()}
for path, num_files in simplified_left_data_paths.items():
print(f"\t{path}: {num_files}")
print("\n\n")

print(f"===== Data Paths for right config:\n")
right_data_paths = {simplify_path(path): count for path, count in right_data_paths.items()}
for path, num_files in right_data_paths.items():
print("===== Data Paths for right config:\n")
simplified_right_data_paths = {simplify_path(path): count for path, count in right_data_paths.items()}
for path, num_files in simplified_right_data_paths.items():
print(f"\t{path}: {num_files}")

return
Expand Down
2 changes: 0 additions & 2 deletions tests/util_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from unittest import TestCase

from olmo import util


Expand Down

0 comments on commit 9c89418

Please sign in to comment.