The actual gain IS NOT -20dB which is a loss, not a gain. Instead the actual gain is 20dB and is -10 times. The dB number will not say if the signal is inverted or not. I think if you say a signal has a gain of 10 then we also do not know if it is +10 times which is non-inverting or if it is -10 times which is inverting.
Use simple arithmetic to determine the output impedance of the signal generator. If the 10k feedback resistor value is actually exactly 10k ohms and the actual gain is -9.65 then the input resistance is 10k/9.65= 1036.3 ohms. If the 1k resistor is actually exactly 1k ohms then the generator impedance is 36.3 ohms.