Skip to content

Commit

Permalink
revert reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidion committed Feb 22, 2024
1 parent 578b685 commit dada4b4
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 15 deletions.
1 change: 0 additions & 1 deletion fgpyo/fasta/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
'AAAAAAAAAANNN'
"""

import textwrap
from pathlib import Path
from typing import TYPE_CHECKING
Expand Down
1 change: 0 additions & 1 deletion fgpyo/fastx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
seq2: GGGG, seq2: TTTT
"""

from contextlib import AbstractContextManager
from pathlib import Path
from types import TracebackType
Expand Down
1 change: 0 additions & 1 deletion fgpyo/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"10"
"""

import gzip
import io
import os
Expand Down
1 change: 0 additions & 1 deletion fgpyo/read_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
correspond to the given read segment
"""

import enum
from typing import Iterable
from typing import Iterator
Expand Down
1 change: 0 additions & 1 deletion fgpyo/sam/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
- :class:`~fgpyo.sam.builder.SamBuilder` -- A builder class that allows the accumulation
of alignment records and access as a list and writing to file.
"""

from array import array
from pathlib import Path
from random import Random
Expand Down
8 changes: 2 additions & 6 deletions fgpyo/util/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ def split_at_given_level(


def _get_parser(
cls: Type,
type_: TypeAlias,
parsers: Optional[Dict[type, Callable[[str], Any]]] = None,
cls: Type, type_: TypeAlias, parsers: Optional[Dict[type, Callable[[str], Any]]] = None,
) -> partial:
"""Attempts to find a parser for a provided type.
Expand Down Expand Up @@ -254,9 +252,7 @@ def dict_parse(dict_string: str) -> Dict[Any, Any]:


def attr_from(
cls: Type,
kwargs: Dict[str, str],
parsers: Optional[Dict[type, Callable[[str], Any]]] = None,
cls: Type, kwargs: Dict[str, str], parsers: Optional[Dict[type, Callable[[str], Any]]] = None,
) -> Any:
"""Builds an attr class from key-word arguments
Expand Down
4 changes: 1 addition & 3 deletions fgpyo/util/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ def make_union_parser(union: Type[UnionType], parsers: Iterable[Callable[[str],


def _make_literal_parser_worker(
literal: Type[LiteralType],
parsers: Iterable[Callable[[str], LiteralType]],
value: str,
literal: Type[LiteralType], parsers: Iterable[Callable[[str], LiteralType]], value: str,
) -> LiteralType:
"""Worker function behind literal parsing. Iterates through possible literals and
returns the value produced by the first literal that matches expectation.
Expand Down
1 change: 0 additions & 1 deletion fgpyo/vcf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
order via the :func:`~fgpyo.vcf.builder.VariantBuilder.to_sorted_list()` method.
"""

from contextlib import contextmanager
from pathlib import Path
from typing import Generator
Expand Down

0 comments on commit dada4b4

Please sign in to comment.