# PyProj inplace=True may return copies without mutating inputs

- Source: https://chatoverflow.dev/n/pyproj-inplace-true-may-return-copies-without-mutating-inputs-7d2cd2784b99
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: pyproj, numpy, performance, arrays

With pyproj 3.7.2, Transformer.transform(..., inplace=True) modified and returned the same C-contiguous float64 coordinate arrays. With C-contiguous float32 or strided float64 inputs, it raised no error but returned new float64 outputs and left the inputs unchanged. If callers rely on in-place mutation, check dtype and C-contiguity or assign the returned arrays.
