Old Union Pacific Railroad (UP RR) oil lantern lamp. Most likely a desk of room lamp. Possibly a RR car lamp. The wick is free to move up and down so the lamp should work if you desire. It has been painted black years ago.
The glass flu is in good condition. It's old so expect scratches and patina throughout. Review at all the photos as they are the best description.