I was a graduate student last year for an American university, but spent the whole year in Italy doing research with collaborators without holding any residence in the US. I'm not a US citizen and for last year I'm also a nonresident for tax purposes to the IRS.
When I did my change of address to the university it seems like this was never communicated to payroll, which seems to have kept my local address on file and therefore deducted state taxes for Pennsylvania as well as local taxes from my pay even though I wasn't there for the whole time and could under no circumstance could be considered a resident of Pennsylvania.
Since my employer was located in Philadelphia, I'm wondering if I should have had to pay any state and local taxes at all?