I was reading this interpretation of conditional expectation to try understand better conditional expectation and measurability. What I understood from it is that given a probability space $\Omega$ and $\{A_i\}_{i\in I}$ a partition of $\Omega$, if we have a $\sigma$-algebra $\mathcal{F}=\sigma(\{A_i\}_{i\in I})$, i.e. a $\sigma$-algebra which is generated by a partition of $\Omega$ then $E(X|\mathcal{F})(\omega)=E[X|A_j]$ if $\omega\in A_j$. However, the last step (6.) from the first linked post where the method is extended to any $\sigma$-algebra is not clear to me. Indeed there are some $\sigma$-algebras that are not generated by a partitions, like the Borel sigma-algebra on $[0,1]$ (see this post) and then it is not so clear to me how this technique works.
Added
Maybe there is something I am not getting right about how step (6.) from the linked answer should work. I consider $([0,1],\mathcal{B},P)$ where $\mathcal{B}$ are the borel sets and $P$ the Lebesgue measure on $[0,1]$. A partition of $[0,1]$ with borel sets (which doesn't generate the borelians since by the linked answer this is not possible) would be $[0,1]= \sqcup_{\omega\in[0,1]}\{\omega\}$. However we know that $\omega\in \{\omega\}$ and by analogy with the linked answer we would like to have $E[X|\mathcal{B}]=E[X|\{\omega\}]= E[X:{\omega}]/P(\{\omega\})$ but $P(\{x\})=0$ so this is not well defined. In general $\omega\in (\omega-\epsilon,\omega+\epsilon)$ then we also have $\omega\in (\omega-\epsilon/2,\omega+\epsilon/2)$ or $\omega\in (\omega-\epsilon/3,\omega+\epsilon/3)$ or whatever. But how do you define $E[X|\mathcal{B}]$? Indeed, $W[X|(\omega-\epsilon,\omega+\epsilon)]$, $W[X|(\omega-\epsilon/2,\omega+\epsilon/2)]$ or $W[X|(\omega-\epsilon/3,\omega+\epsilon/3)]$ are different. I just don't understand how point 6) works in this case.