The Japanese government is considering not attending the Treaty on the Prohibition of Nuclear Weapons as an observer.