Skip to content

Commit

Permalink
Inherit Exception in fallback exception classes (#3450)
Browse files Browse the repository at this point in the history
Make the fallback exception classes (created when polars.polars can not be imported) subclasses of Exception. This prevents warnings in PyCharm.
  • Loading branch information
adamgreg committed May 21, 2022
1 parent 3484245 commit 326a3cb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions py-polars/polars/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@
# They are only redefined for documentation purposes
# when there is no binary yet

class ArrowError: # type: ignore
class ArrowError(Exception): # type: ignore
pass

class ComputeError: # type: ignore
class ComputeError(Exception): # type: ignore
pass

class NoDataError: # type: ignore
class NoDataError(Exception): # type: ignore
pass

class NotFoundError: # type: ignore
class NotFoundError(Exception): # type: ignore
pass

class SchemaError: # type: ignore
class SchemaError(Exception): # type: ignore
pass

class ShapeError: # type: ignore
class ShapeError(Exception): # type: ignore
pass


Expand Down

0 comments on commit 326a3cb

Please sign in to comment.