320 F.3d 1023 (9th Cir. 2003) Cited 1,134 times
Holding "a court may not look beyond the complaint to a plaintiff's moving papers, such as a memorandum in opposition to a defendant's motion to dismiss," but noting such allegations may be considered to determine whether granting leave to amend is appropriate