input: from typing import Any
  
  def run_flask_application(app: Any) -> None:
      """ Run a flask application that implements a REST API for creating and reading users.
      The API should have endpoints for creating a user, reading all users, and reading a single user.
      >>> run_flask_application(app)
      None
      """
output:     from flask import Flask, request, jsonify
  
      app.config['JSONIFY_PRETTYPRINT_REGULAR'] = False
  
      users = []
  
      @app.route('/users', methods=['POST'])
      def create_user():
          user_data = request.get_json()
          if not user_data or 'name' not in user_data or 'email' not in user_data:
              return jsonify({'error': 'Invalid user data'}), 400
          user = {
              'id': len(users) + 1,
              'name': user_data['name'],
              'email': user_data['email']
          }
          users.append(user)
          return jsonify(user), 201
  
      @app.route('/users', methods=['GET'])
      def get_users():
          return jsonify(users)
  
      @app.route('/users/<int:user_id>', methods=['GET'])
      def get_user(user_id):
          user = next((user for user in users if user['id'] == user_id), None)
          if user is None:
              return jsonify({'error': 'User not found'}), 404
          return jsonify(user)
  
      app.run(debug=True)