Skip to content

Commit

Permalink
Remove io.StringIO as type hint
Browse files Browse the repository at this point in the history
...since it was breaking the documentation build.
  • Loading branch information
namurphy committed Mar 4, 2024
1 parent 5a9cb90 commit 2ea880c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plasmapy/particles/particle_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from abc import ABC, abstractmethod
from collections import defaultdict, namedtuple
from datetime import datetime
from io import StringIO # noqa: TCH003 (needed for type hint in doc build)
from numbers import Integral, Real
from typing import TYPE_CHECKING, TypeAlias

Expand Down Expand Up @@ -179,7 +178,7 @@ def __bool__(self) -> bool:
"""
raise ParticleError("The truth value of a particle is not defined.")

def json_dump(self, fp: StringIO, **kwargs: dict[str, Any]) -> None:
def json_dump(self, fp, **kwargs: dict[str, Any]) -> None:
"""
Write the particle's `json_dict` to the ``fp`` file object using
`json.dump`.
Expand Down

0 comments on commit 2ea880c

Please sign in to comment.