prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Remove number_input -/+ step toggles option
  Is there an option to remove the -/+ number_input step toggles? If not, I would suggest that for a future release. Thank you! 
  
  Also, is it possible to increase the precision? 
  
  Right now I am just using a text_input and type casting to float to get around this.
  
  ---
  
  Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.
  
  **If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.**
  
  </issue>
  <code>
  [start of e2e/scripts/st_number_input.py]
  1 # Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)
  2 #
  3 # Licensed under the Apache License, Version 2.0 (the "License");
  4 # you may not use this file except in compliance with the License.
  5 # You may obtain a copy of the License at
  6 #
  7 #     http://www.apache.org/licenses/LICENSE-2.0
  8 #
  9 # Unless required by applicable law or agreed to in writing, software
  10 # distributed under the License is distributed on an "AS IS" BASIS,
  11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12 # See the License for the specific language governing permissions and
  13 # limitations under the License.
  14 
  15 import streamlit as st
  16 from streamlit import runtime
  17 
  18 i1 = st.number_input("number input 1")
  19 st.write('value 1: "', i1, '"')
  20 
  21 i2 = st.number_input("number input 2", value=1)
  22 st.write('value 2: "', i2, '"')
  23 
  24 i3 = st.number_input("number input 3", 1, 10)
  25 st.write('value 3: "', i3, '"')
  26 
  27 i4 = st.number_input("number input 4", step=2)
  28 st.write('value 4: "', i4, '"')
  29 
  30 i5 = st.number_input("number input 5", max_value=10)
  31 st.write('value 5: "', i5, '"')
  32 
  33 i6 = st.number_input("number input 6", disabled=True)
  34 st.write('value 6: "', i6, '"')
  35 
  36 i7 = st.number_input("number input 7", label_visibility="hidden")
  37 st.write('value 7: "', i7, '"')
  38 
  39 i8 = st.number_input("number input 8", label_visibility="collapsed")
  40 st.write('value 8: "', i8, '"')
  41 
  42 if runtime.exists():
  43 
  44     def on_change():
  45         st.session_state.number_input_changed = True
  46 
  47     st.number_input("number input 9", key="number_input9", on_change=on_change)
  48     st.write('value 9: "', st.session_state.number_input9, '"')
  49     st.write("number input changed:", "number_input_changed" in st.session_state)
  50
  [end of e2e/scripts/st_number_input.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/e2e/scripts/st_number_input.py b/e2e/scripts/st_number_input.py
  --- a/e2e/scripts/st_number_input.py
  +++ b/e2e/scripts/st_number_input.py
  @@ -47,3 +47,9 @@
       st.number_input("number input 9", key="number_input9", on_change=on_change)
       st.write('value 9: "', st.session_state.number_input9, '"')
       st.write("number input changed:", "number_input_changed" in st.session_state)
  +
  +[col1, col2, col3, col4, col5, col6] = st.columns(6)
  +
  +with col1:
  +    i10 = st.number_input("number input 10", max_value=10)
  +    st.write('value 10: "', i10, '"')
  
verification_info: {"golden_diff": "diff --git a/e2e/scripts/st_number_input.py b/e2e/scripts/st_number_input.py\n--- a/e2e/scripts/st_number_input.py\n+++ b/e2e/scripts/st_number_input.py\n@@ -47,3 +47,9 @@\n     st.number_input(\"number input 9\", key=\"number_input9\", on_change=on_change)\n     st.write('value 9: \"', st.session_state.number_input9, '\"')\n     st.write(\"number input changed:\", \"number_input_changed\" in st.session_state)\n+\n+[col1, col2, col3, col4, col5, col6] = st.columns(6)\n+\n+with col1:\n+    i10 = st.number_input(\"number input 10\", max_value=10)\n+    st.write('value 10: \"', i10, '\"')\n", "issue": "Remove number_input -/+ step toggles option\nIs there an option to remove the -/+ number_input step toggles? If not, I would suggest that for a future release. Thank you! \r\n\r\nAlso, is it possible to increase the precision? \r\n\r\nRight now I am just using a text_input and type casting to float to get around this.\r\n\r\n---\r\n\r\nCommunity voting on feature requests enables the Streamlit team to understand which features are most important to our users.\r\n\r\n**If you'd like the Streamlit team to prioritize this feature request, please use the \ud83d\udc4d (thumbs up emoji) reaction in response to the initial post.**\n", "before_files": [{"content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport streamlit as st\nfrom streamlit import runtime\n\ni1 = st.number_input(\"number input 1\")\nst.write('value 1: \"', i1, '\"')\n\ni2 = st.number_input(\"number input 2\", value=1)\nst.write('value 2: \"', i2, '\"')\n\ni3 = st.number_input(\"number input 3\", 1, 10)\nst.write('value 3: \"', i3, '\"')\n\ni4 = st.number_input(\"number input 4\", step=2)\nst.write('value 4: \"', i4, '\"')\n\ni5 = st.number_input(\"number input 5\", max_value=10)\nst.write('value 5: \"', i5, '\"')\n\ni6 = st.number_input(\"number input 6\", disabled=True)\nst.write('value 6: \"', i6, '\"')\n\ni7 = st.number_input(\"number input 7\", label_visibility=\"hidden\")\nst.write('value 7: \"', i7, '\"')\n\ni8 = st.number_input(\"number input 8\", label_visibility=\"collapsed\")\nst.write('value 8: \"', i8, '\"')\n\nif runtime.exists():\n\n    def on_change():\n        st.session_state.number_input_changed = True\n\n    st.number_input(\"number input 9\", key=\"number_input9\", on_change=on_change)\n    st.write('value 9: \"', st.session_state.number_input9, '\"')\n    st.write(\"number input changed:\", \"number_input_changed\" in st.session_state)\n", "path": "e2e/scripts/st_number_input.py"}]}