Skip to content

Commit

Permalink
Remove from __future__ import annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
posita committed Aug 4, 2023
1 parent 7cdc136 commit 8ef5917
Show file tree
Hide file tree
Showing 39 changed files with 176 additions and 249 deletions.
2 changes: 0 additions & 2 deletions docs/assets/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

import argparse
import html
import logging
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/graph_classes_dyce_r.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

import logging
import os
import subprocess
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/graph_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

from graph import COLORS, Dot, digraph, graphviz_walk

from dyce.r import R
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/graph_rollin_expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

import random

from graph import COLORS, Dot, digraph, graphviz_walk
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/graph_rollin_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

import random

from graph import COLORS, Dot, digraph, graphviz_walk
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/graph_rollin_select_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

import random

from graph import COLORS, Dot, digraph, graphviz_walk
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/graph_rollin_select_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

import random

from graph import COLORS, Dot, digraph, graphviz_walk
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/graph_rollin_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

from graph import Dot, digraph, graphviz_walk

from dyce.r import ValueRoller
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/graph_substitute_append.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

import random

from graph import COLORS, Dot, digraph, graphviz_walk
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/graph_substitute_replace.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

import random

from graph import COLORS, Dot, digraph, graphviz_walk
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

import argparse
import logging
from functools import partial
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/plot_2d6_lo_hi.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

from anydyce.viz import plot_bar

from dyce import H, P
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/plot_4d6_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

from anydyce.viz import plot_line

from dyce import H, P
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/plot_advantage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

from anydyce.viz import plot_line

from dyce import H, P
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/plot_burning_arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

from anydyce.viz import plot_line

from dyce import H
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/plot_d10_explode.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

from anydyce.viz import plot_line

from dyce import H, P
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/plot_dupes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

from anydyce.viz import plot_scatter

from dyce import P
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/plot_great_weapon_fighting.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

from anydyce.viz import plot_burst, plot_line

from dyce import H
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/plot_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

from anydyce.viz import plot_bar

from dyce import H
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/plot_ironsworn.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

from enum import IntEnum, auto
from functools import partial

Expand Down
2 changes: 0 additions & 2 deletions docs/assets/plot_risus_first_round.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

from dyce import H


Expand Down
2 changes: 0 additions & 2 deletions docs/assets/plot_roll_and_keep.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

from typing import Iterator

from anydyce.viz import plot_line
Expand Down
2 changes: 0 additions & 2 deletions docs/assets/plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

import argparse
import importlib.machinery
import importlib.util
Expand Down
2 changes: 0 additions & 2 deletions docs/find_seed.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

import argparse
import logging
import random
Expand Down
2 changes: 0 additions & 2 deletions dyce/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

from typing import Union

from .evaluation import * # noqa: F401,F403
Expand Down
2 changes: 0 additions & 2 deletions dyce/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# software in any capacity.
# ======================================================================================

from __future__ import annotations

import sys
from contextvars import ContextVar
from fractions import Fraction
Expand Down
Loading

0 comments on commit 8ef5917

Please sign in to comment.