It's hard to predict exactly when artificial intelligence will be able to replace a human pilot in the process of controlling an aircraft. This depends on many factors such as the level of technological development, progress in the development of artificial intelligence, changes in legislation, etc.
However, there are already automatic air transport management systems that can perform some of the pilot's functions. For example, automatic systems can control the altitude, speed, direction, etc. However, even in such cases, pilots are still on board to monitor the system's operation and make decisions in non-standard situations.
Thus, it can be said that artificial intelligence is already being used in aviation and further progress in this area can be expected in the coming years. However, it is not foreseen that artificial intelligence will completely replace a human pilot in the next few decades.