diff --git a/astpretty.py b/astpretty.py
index d0c1b59..abc8444 100644
--- a/astpretty.py
+++ b/astpretty.py
@@ -75,7 +75,7 @@ def _leaf(node: 'ASTType', show_offsets: bool = True) -> str:
 
 def pformat(
         node: Union['ASTType', None, str],
-        indent: str = '    ',
+        indent: Union[str, int] = '    ',
         show_offsets: bool = True,
         _indent: int = 0,
 ) -> str:
@@ -86,6 +86,11 @@ def pformat(
     elif _is_leaf(node):
         return _leaf(node, show_offsets=show_offsets)
     else:
+        if isinstance(indent, int):
+            indent_s = indent * ' '
+        else:
+            indent_s = indent
+
         class state:
             indent = _indent
 
@@ -96,7 +101,7 @@ def pformat(
             state.indent -= 1
 
         def indentstr() -> str:
-            return state.indent * indent
+            return state.indent * indent_s
 
         def _pformat(el: Union['ASTType', None, str], _indent: int = 0) -> str:
             return pformat(

diff --git a/tests/astpretty_test.py b/tests/astpretty_test.py
index b595d64..796950f 100644
--- a/tests/astpretty_test.py
+++ b/tests/astpretty_test.py
@@ -127,6 +127,21 @@ def test_pformat_custom_indent():
     )
 
 
+def test_pformat_integer_indent():
+    node = _to_expr_value('[a, b, c]')
+    ret = astpretty.pformat(node, indent=3, show_offsets=False)
+    assert ret == (
+        'List(\n'
+        '   elts=[\n'
+        "      Name(id='a', ctx=Load()),\n"
+        "      Name(id='b', ctx=Load()),\n"
+        "      Name(id='c', ctx=Load()),\n"
+        '   ],\n'
+        '   ctx=Load(),\n'
+        ')'
+    )
+
+
 def test_pformat_nested_node_without_line_information():
     expected_38 = (
         'Subscript(\n'

Have an option for indent argument to be number of spaces
Like `json.dumps` or `ast.dump`, making indent have an option to be an integer would be nice.

I could probably make a PR for this, if the idea gets approval.
tests/astpretty_test.py::test_pformat_integer_indent
tests/astpretty_test.py::test_is_leaf_true[x] tests/astpretty_test.py::test_is_leaf_true["y"] tests/astpretty_test.py::test_is_leaf_true[5] tests/astpretty_test.py::test_is_leaf_true[[]] tests/astpretty_test.py::test_is_leaf_has_attr_with_list_of_primitives tests/astpretty_test.py::test_is_leaf_false[a.b] tests/astpretty_test.py::test_is_leaf_false[[4]] tests/astpretty_test.py::test_is_leaf_false[x()] tests/astpretty_test.py::test_pformat_py35_regression tests/astpretty_test.py::test_pformat_node tests/astpretty_test.py::test_pformat_nested_with_offsets tests/astpretty_test.py::test_pformat_nested_attr_empty_list tests/astpretty_test.py::test_pformat_mixed_sub_nodes_and_primitives tests/astpretty_test.py::test_pformat_nested_multiple_elements tests/astpretty_test.py::test_pformat_custom_indent tests/astpretty_test.py::test_pformat_leaf_node_with_list tests/astpretty_test.py::test_pprint tests/astpretty_test.py::test_main_with_offsets tests/astpretty_test.py::test_main_hide_offsets tests/astpretty_test.py::test_pformat_py38_type_comments