Skip to content

Commit

Permalink
Fixed error in type hints (#326)
Browse files Browse the repository at this point in the history
* adding annonations import

* adding annonations import in more files

---------

Co-authored-by: Souryadip Das <[email protected]>
  • Loading branch information
Souryadipstan and souryadip-hungerbox authored Sep 6, 2023
1 parent ce8ba9f commit 469a116
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ repos:
additional_dependencies:
- flake8-future-import
args:
- --select=FI
- --select=
- --ignore FI58
entry: flake8
files: '\.py$'
- repo: https://github.com/pycqa/isort.git
Expand Down
1 change: 1 addition & 0 deletions prompt2model/dataset_processor/mock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A mock dataset processor for testing purposes."""
from __future__ import annotations

import datasets

Expand Down
1 change: 1 addition & 0 deletions prompt2model/model_executor/mock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A dummy class to generate model outputs (for testing purposes)."""
from __future__ import annotations

import datasets

Expand Down
1 change: 1 addition & 0 deletions prompt2model/model_retriever/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An interface for model selection."""
from __future__ import annotations

from abc import ABC, abstractmethod

Expand Down
1 change: 1 addition & 0 deletions prompt2model/model_retriever/mock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An interface for model selection."""
from __future__ import annotations

from prompt2model.model_retriever import ModelRetriever
from prompt2model.prompt_parser import PromptSpec
Expand Down
1 change: 1 addition & 0 deletions prompt2model/param_selector/mock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Mock model selector for testing purposes."""
from __future__ import annotations

from typing import Any

Expand Down
1 change: 1 addition & 0 deletions prompt2model/run_locally.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A script to run the prompt2model pipeline locally."""
from __future__ import annotations

import argparse

Expand Down
1 change: 1 addition & 0 deletions prompt2model/utils/tevatron_utils/retrieve.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tools for doing efficient similarity search via the Tevatron/faiss libraries."""
from __future__ import annotations

import pickle

Expand Down

0 comments on commit 469a116

Please sign in to comment.