In non-Euclidean geometries, the sum of angles in a triangle differs from 180 degrees. In Riemannian geometry (spherical/elliptic geometry), the angle sum is always greater than 180 degrees - think of a triangle drawn on a sphere where the sides are great circle arcs. Lobachevsky developed hyperbolic geometry where the sum is less than 180 degrees.