Fix unnecessary shadowing pylint error #14529
Merge pull request #14592 from mickep76/fix-unnecessary-shadowing

Fix unnecessary shadowing pylint error #14529