Skip to content

Commit 384c562

Browse files
authored
refactor: remove annotations future import
1 parent cab705a commit 384c562

File tree

7 files changed

+3
-10
lines changed

7 files changed

+3
-10
lines changed

src/conjecture/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
44
a pythonic assertion framework
55
"""
6-
from __future__ import annotations
76

87
from conjecture.base import AllOfConjecture, AnyOfConjecture, Conjecture
98
from conjecture.general import all_of, any_of, anything, has, none

src/conjecture/base.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""base conjecture classes."""
2-
from __future__ import annotations
32

43
import collections.abc
54
import typing
@@ -59,7 +58,7 @@ def __eq__(self, other: object) -> bool:
5958
"""
6059
return self.resolve(other)
6160

62-
def __invert__(self) -> Conjecture:
61+
def __invert__(self) -> "Conjecture":
6362
"""
6463
Invert conjecture.
6564
@@ -69,7 +68,7 @@ def __invert__(self) -> Conjecture:
6968
"""
7069
return Conjecture(lambda value: not self.resolve(value))
7170

72-
def __or__(self, other: object) -> Conjecture:
71+
def __or__(self, other: object) -> "Conjecture":
7372
"""
7473
Combine using any of.
7574
@@ -85,7 +84,7 @@ def __or__(self, other: object) -> Conjecture:
8584

8685
return AnyOfConjecture((self, other))
8786

88-
def __and__(self, other: object) -> Conjecture:
87+
def __and__(self, other: object) -> "Conjecture":
8988
"""
9089
Combine using all of.
9190

src/conjecture/general.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""general conjectures."""
2-
from __future__ import annotations
32

43
import conjecture.base
54

src/conjecture/object.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""object conjectures."""
2-
from __future__ import annotations
32

43
import typing
54

src/conjecture/rich.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""rich comparison conjectures."""
2-
from __future__ import annotations
32

43
import abc
54
import typing

src/conjecture/sized.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""sized conjectures."""
2-
from __future__ import annotations
32

43
import collections.abc
54
import typing

src/conjecture/string.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""string conjectures."""
2-
from __future__ import annotations
32

43
import typing
54

0 commit comments

Comments
 (0)