\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary[arrows.meta]
\begin{document}
\begin{tikzpicture}[
line/.style = {draw,thick,
shorten >=-2pt, shorten <=-2pt}
]
\draw (-3,0) -- (7,0);
\foreach \i in {-3,-2,...,7} % numbers on line
\draw (\i,0.15) -- ++ (0,-0.3) node[below] {$\i$}; % tick and their labels
\draw[line, {Circle[length=4pt]}-{Circle[length=4pt, fill=white]}] (1,0) -- (2,0);
\draw[line, {Circle[length=4pt, fill=white]}-{Circle[length=4pt]}] (3,0) -- (4,0);
\draw[line, {Circle[length=4pt]}-{Triangle[length=4pt]}] (5,0) -- (7,0);
\end{tikzpicture}
\end{document}